/* Contact Page Specific Styles - Redesigned */

:root {
    --card-hover-transform: translateY(-10px);
    --card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Header */
.page-header {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s forwards;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-background);
    line-height: 1.1;
}

.page-header h1 .highlight {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

.page-description {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(245, 241, 233, 0.9);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Contact Info Cards Section */
.contact-info-section {
    padding: 5rem 0;
    background-color: var(--color-background);
    position: relative;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--color-secondary);
}

.info-card-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-background);
    transition: all 0.3s ease;
}

.contact-info-card:hover .info-card-icon {
    background-color: var(--color-secondary);
    transform: scale(1.1) rotate(10deg);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.contact-info-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.info-card-action {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.info-card-action:hover {
    color: var(--color-secondary);
}

/* Contact Wrapper Section */
.contact-wrapper-section {
    padding: 5rem 0;
    background-color: var(--color-background-alt);
    position: relative;
    overflow: hidden;
}

.contact-wrapper-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231A2B4C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.main-contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.contact-form-column {
    background-color: var(--color-background);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.form-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    line-height: 1.6;
}

.main-contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group .required {
    color: var(--color-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background-color: var(--color-background);
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 43, 76, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.form-submit {
    grid-column: span 2;
    margin-top: 1rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

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

.submit-btn:hover i {
    transform: translateX(3px);
}

/* Contact Sidebar */
.contact-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.office-map {
    background-color: var(--color-background);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.office-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-secondary);
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.office-hours {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.office-hours h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.office-hours ul {
    list-style: none;
    padding: 0;
}

.office-hours li {
    padding: 0.5rem 0;
    color: var(--color-text-light);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.office-hours li:last-child {
    border-bottom: none;
}

.office-hours li span {
    font-weight: 500;
    color: var(--color-text);
}

.contact-faq {
    background-color: var(--color-background);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.contact-faq:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-secondary);
}

.contact-faq h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

.faq-toggle {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-answer p {
    padding-top: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Process Timeline Section */
.process-section {
    padding: 6rem 0;
    background-color: var(--color-background);
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.75rem;
    width: 2px;
    background: var(--color-border);
    z-index: 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    width: 5.5rem;
    height: 5.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-number {
    background: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    padding-top: 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.timeline-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Follow Us Section */
.follow-us-section {
    padding: 5rem 0;
    background-color: var(--color-background-alt);
    text-align: center;
}

.follow-us-section .section-header {
    margin-bottom: 3rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.social-grid-item {
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2rem 1rem;
    border-radius: 1rem;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.social-grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.social-grid-item .social-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all 0.3s ease;
}

.social-grid-item:hover .social-icon {
    background-color: var(--color-secondary);
    transform: scale(1.1) rotate(10deg);
}

.social-grid-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.social-grid-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-background);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(245, 241, 233, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-background);
    border: 1px solid var(--color-background);
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Form Message Styles */
.form-message {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.form-message.error {
    background-color: rgba(255, 111, 97, 0.1);
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

.form-message.success {
    background-color: rgba(168, 230, 207, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-primary);
}

.form-message i {
    margin-right: 0.75rem;
}

.form-message.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for loading spinner */
.spin-animation {
    animation: spin 1s linear infinite;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .main-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-column,
    .contact-sidebar-column {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .contact-sidebar-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 992px) {
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 1.5rem;
    }
    
    .contact-sidebar-column {
        grid-template-columns: 1fr;
    }
    
    .follow-us-section {
        padding: 4rem 0;
    }
    
    .contact-form-column {
        padding: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .office-hours ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .office-hours li {
        padding: 0.5rem;
        text-align: center;
        border: 1px solid var(--color-border);
        border-radius: 0.5rem;
        flex-direction: column;
    }
    
    .office-hours li span {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .process-timeline::before {
        left: 2.5rem;
    }
    
    .timeline-number {
        width: 5rem;
        height: 5rem;
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .page-header {
        min-height: auto;
        padding: 7rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .main-contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: auto;
    }
    
    .contact-form-column {
        padding: 2rem 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-number {
        margin: 0 auto;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 6rem 0 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .page-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .form-header h2 {
        font-size: 1.75rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .checkbox-group label {
        font-size: 0.85rem;
    }
    
    .checkbox-group {
        align-items: center;
    }
    
    .contact-info-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-info-card p {
        font-size: 0.9rem;
    }
    
    .info-card-action {
        font-size: 1.1rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* Fix map responsive behavior */
    .map-container {
        height: 200px;
    }
    
    .main-contact-form {
        gap: 1rem;
    }
    
    .office-hours ul {
        grid-template-columns: 1fr;
    }
}

/* Additional mobile touch optimizations */
@media (hover: none) {
    /* Make form elements more touch-friendly */
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Larger touch targets */
    .faq-toggle {
        width: 36px;
        height: 36px;
    }
    
    .faq-toggle i {
        width: 20px;
        height: 20px;
    }
    
    .faq-question {
        padding: 0.5rem 0;
    }
    
    /* Improve touch feedback */
    .info-card-action:active,
    .social-grid-item:active,
    .faq-question:active,
    .submit-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Fix iOS scrolling issues */
    .main-contact-form,
    .social-grid,
    .faq-answer {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix touch behavior on map */
    .map-container {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Ensure checkboxes are easily tappable */
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active nav link styles */
.nav-links a.active {
    color: var(--color-secondary);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-links a.active {
    color: var(--color-secondary);
    background: rgba(255, 111, 97, 0.1);
}