/* Contact Page CSS Variables */
:root {
    --primary-color: #003366;
    --accent-color: #4fc3f7;
    --accent-light: #e3f2fd;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #888;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #e9ecef;
    --shadow-soft: 0 8px 32px rgba(0, 51, 102, 0.12);
    --shadow-hover: 0 12px 48px rgba(0, 51, 102, 0.18);
    --gradient-hero: linear-gradient(135deg, #003366 0%, #4fc3f7 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-accent: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
}

/* Fix spacing between navigation and hero section */
main[role="main"] {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

/* Ensure hero section sits flush against navigation */
.contact-hero-section {
    margin-top: 0 !important;
    margin-bottom: 0;
    padding-top: 6rem;
}

/* Additional reset for first section */
section:first-of-type, 
.contact-hero-section:first-child, 
.contact-hero-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 6rem !important;
}

/* Hero Section */
.contact-hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(79, 195, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white; /* Fallback color */
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Ensure background covers the full text */
    display: block;
    width: 100%;
    /* Fallback for browsers that don't support background-clip */
    background-repeat: no-repeat;
}

/* Fallback for browsers without gradient text support */
@supports not (-webkit-background-clip: text) {
    .contact-hero-title {
        color: white;
        background: none;
    }
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-trust-indicators {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-trust-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-trust-item span {
    font-weight: 500;
    white-space: nowrap;
}

/* Hero Visual */
.contact-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-icon-preview {
    position: relative;
    width: 300px;
    height: 300px;
}

.contact-main-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    animation: contactPulse 3s ease-in-out infinite;
}

.contact-main-icon i {
    font-size: 3rem;
    color: white;
}

.contact-floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: contactFloat 4s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.floating-icon:nth-child(2) {
    bottom: 30%;
    left: 10%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.floating-icon i {
    color: white;
    font-size: 1.5rem;
}

/* Main Contact Section */
.contact-main-section {
    padding: 80px 0;
    background: var(--bg-light);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Contact Form Card */
.contact-form-card {
    background: var(--gradient-card);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.contact-form-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.contact-card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(79, 195, 247, 0.3);
}

.contact-card-icon i {
    font-size: 2rem;
    color: white;
}

.contact-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-group {
    position: relative;
}

.contact-input-wrapper {
    position: relative;
}

.contact-input {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-light);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.contact-input:focus {
    background: var(--bg-white);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.contact-input:focus + .contact-label,
.contact-input:not(:placeholder-shown) + .contact-label {
    transform: translateY(-140%) scale(0.85);
    color: var(--accent-color);
    background: white;
    padding: 0 0.5rem;
}

/* Special positioning for textarea labels - match other inputs exactly */
.contact-textarea:focus + .contact-label,
.contact-textarea:not(:placeholder-shown) + .contact-label {
    transform: translateY(-140%) scale(0.85);
    color: var(--accent-color);
    background: white;
    padding: 0 0.5rem;
}

.contact-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Special positioning for textarea labels when not focused - align with text content */
.contact-textarea + .contact-label {
    top: 1.25rem;
    left: 3rem;
    transform: translateY(0);
}

.contact-label-icon {
    position: absolute;
    left: -2.25rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
    /* All other styling inherited from .contact-input class */
}

.contact-submit-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    box-shadow: 0 4px 16px rgba(79, 195, 247, 0.3);
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 195, 247, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Contact Information Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info-content {
    flex: 1;
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-text {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.contact-info-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: var(--primary-color);
}

.contact-address p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.contact-response-time {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.response-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.response-subtext {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Map Card */
.contact-map-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.contact-map-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-map-header {
    margin-bottom: 1.5rem;
}

.contact-map-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-map-subtitle {
    color: var(--text-secondary);
}

.contact-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-map {
    width: 100%;
    height: 250px;
    border: none;
}

/* Animations */
@keyframes contactPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 0 20px rgba(79, 195, 247, 0);
    }
}

@keyframes contactFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-grid {
        gap: 3rem;
    }
    
    .contact-hero-content {
        gap: 3rem;
    }
}

@media (max-width: 968px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-trust-indicators {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 60px 0 40px;
    }
    
    .contact-main-section {
        padding: 40px 0;
    }
    
    .contact-form-card,
    .contact-info-card,
    .contact-map-card {
        padding: 1.5rem;
    }
    
    /* Mobile-only: Center contact info cards content */
    .contact-info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-info-icon {
        margin-bottom: 1rem;
    }
    
    .contact-info-content {
        text-align: center;
    }
    
    /* Mobile-only: Center map card header text */
    .contact-map-header {
        text-align: center;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-trust-indicators {
        gap: 1rem;
    }
    
    .contact-trust-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-icon-preview {
        width: 250px;
        height: 250px;
    }
    
    .contact-main-icon {
        width: 100px;
        height: 100px;
    }
    
    .contact-main-icon i {
        font-size: 2.5rem;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    
    .floating-icon i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .contact-info-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-card-title {
        font-size: 1.75rem;
    }
    
    .contact-input {
        padding: 1rem 1rem 1rem 2.5rem;
    }
    
    .contact-label {
        left: 2.5rem;
    }
    
    .contact-label-icon {
        left: -1.75rem;
    }
}