/* Contact Page Styles */
.contact-hero {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 50%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 60px;
    margin-top: -14px;
}

.contact-hero .hero-title {
    color: var(--text-white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.2;
}

.contact-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 30px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-white);
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-white);
}

.highlight-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.highlight-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.highlight-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-animation {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.contact-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-white);
}

.pulse-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.contact-info-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--text-white);
}

.contact-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

/* Ensure buttons inside contact cards are visible on light backgrounds */
.contact-card .btn-outline {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.contact-card .btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

.contact-details {
    text-align: left;
    margin-bottom: 25px;
}

.phone-group,
.email-group,
.hours-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.phone-group:last-child,
.email-group:last-child,
.hours-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-details p {
    margin: 5px 0;
    color: var(--text-light);
    line-height: 1.5;
    text-align: justify;
}

.contact-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contact-form-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.form-content {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-form {
    background: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group textarea::placeholder {
    font-style: normal;
    font-weight: 400;
    color: var(--text-light);
    font-family: inherit;
    font-size: inherit;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-light);
    pointer-events: none;
}

.form-group:has(textarea) .form-icon {
    top: 50%;
    transform: translateY(-50%);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    top: 5px;
    flex-shrink: 0;
    transition: var(--transition);
    margin-top: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid var(--text-white, #fff);
    border-width: 0 3px 3px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    position: relative;
    min-width: 200px;
    overflow: hidden;
}

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.btn-submit.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

/* Ensure button text stays visible on hover within contact form */
.contact-form .btn-primary:hover {
    background: var(--accent-color);
    color: var(--text-white);
    border-color: var(--accent-color);
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    h2, .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .contact-hero {
        padding-top: 0 !important;
        padding-bottom: 20px !important;
        min-height: auto !important;
    }

    .contact-hero .hero-title {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 10px !important;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 15px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        min-height: auto !important;
        padding-top: 20px;
    }
    
    .hero-visual {
        display: none !important;
    }
    
    .contact-highlights {
        margin-top: 20px !important;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 15px;
    }
    
    .highlight-item:nth-child(1),
    .highlight-item:nth-child(2) {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
        padding: 12px;
    }

    .highlight-item:nth-child(3) {
        flex: 0 0 100%;
        width: 100%;
        padding: 15px;
    }
    
    .contact-info-section {
        padding: 40px 0;
    }

    .contact-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-card h3 {
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

    .contact-details {
        margin-bottom: 15px;
        text-align: center;
    }

    .contact-details p {
        font-size: 0.95rem;
        margin: 3px 0;
        text-align: center;
    }

    .contact-card .btn-outline {
        margin-top: 15px;
        display: inline-block;
    }

    .phone-group,
    .email-group,
    .hours-group {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group label {
        display: none;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        opacity: 1;
        color: var(--text-light);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .map-overlay {
        position: static;
        margin: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .contact-highlights {
        gap: 10px;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px 12px;
    }
    
    .contact-form {
        padding: 16px 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 36px 10px 10px;
    }
}

@media (max-width: 400px) {
    .contact-hero .hero-title { font-size: 1.7rem; line-height: 1.15; }
    .contact-hero .hero-subtitle { font-size: 0.9rem; line-height: 1.45; }
    .contact-highlights { gap: 8px; }
    .contact-card { padding: 20px 16px; }
    .highlight-text { white-space: nowrap; font-size: 0.88rem; }
}
