/* ===== CONTACT PAGE STYLES ===== */

/* ===== CONTACT HEADER ===== */
.contact-header {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.contact-header .header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%, 
        var(--secondary-color) 100%);
    opacity: 0.1;
    z-index: 1;
}

.contact-header .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.contact-header .float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: float 6s infinite ease-in-out;
}

.contact-header .float-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.contact-header .float-icon:nth-child(2) {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.contact-header .float-icon:nth-child(3) {
    top: 60%;
    left: 8%;
    animation-delay: 2s;
}

.contact-header .float-icon:nth-child(4) {
    top: 70%;
    right: 12%;
    animation-delay: 3s;
}

.contact-header .float-icon:nth-child(5) {
    top: 45%;
    right: 35%;
    animation-delay: 4s;
}

.contact-header .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.contact-header .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 3s infinite;
}

.contact-header .particle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.contact-header .particle:nth-child(2) { top: 40%; right: 20%; animation-delay: 0.6s; }
.contact-header .particle:nth-child(3) { top: 65%; left: 25%; animation-delay: 1.2s; }
.contact-header .particle:nth-child(4) { top: 30%; right: 30%; animation-delay: 1.8s; }
.contact-header .particle:nth-child(5) { top: 80%; left: 40%; animation-delay: 2.4s; }

.contact-header .header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 02rem auto;
}

.contact-header .header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.contact-header .page-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-header .title-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.contact-header .title-main {
    color: var(--text-primary);
    display: block;
}

.contact-header .page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Match hero social styles from the home page */
.contact-header .hero-social {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.contact-header .social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.25rem;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.contact-header .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: white;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 200px;
}

/* Make link states look identical so email/LinkedIn cards match div cards */
.contact-method:link,
.contact-method:visited,
.contact-method:hover,
.contact-method:active {
    color: var(--text-primary);
    text-decoration: none;
}

.contact-method:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.contact-method .method-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-method .method-text {
    flex: 1;
}

.contact-method .method-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
}

.contact-method .method-value {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.form-subtitle {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    resize: vertical;
}

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

.form-textarea {
    min-height: 120px;
    line-height: 1.6;
}

.character-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-checkbox {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

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

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

.form-error {
    color: var(--error-color, #ef4444);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 16px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

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

.contact-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.social-links {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.social-links h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

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

.social-link i {
    font-size: 1.1rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.faq-question h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-icon {
    color: var(--primary-color);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== AVAILABILITY SECTION ===== */
.availability-section {
    padding: 4rem 0;
}

.availability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.availability-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.status-item.available .status-indicator {
    background: #10b981;
}

.status-item.limited .status-indicator {
    background: #f59e0b;
}

.status-item.booking .status-indicator {
    background: #3b82f6;
}

.status-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.status-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.booking-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.calendar-visual {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calendar-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.calendar-grid {
    display: grid;
    gap: 1rem;
}

.calendar-month {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.calendar-month h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.month-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.month-status.busy {
    color: #ef4444;
}

.month-status.available {
    color: #10b981;
}

.month-status.limited {
    color: #f59e0b;
}

/* ===== SUCCESS MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.modal-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-close {
    width: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-method {
        width: 100%;
        max-width: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .availability-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .booking-actions {
        justify-content: center;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-header {
        min-height: 60vh;
        padding-top: 2rem;
    }

    .contact-header .page-title {
        font-size: 2.5rem;
    }

    .contact-header .page-subtitle {
        font-size: 1rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .contact-card,
    .social-links {
        padding: 1.5rem;
    }

    .calendar-visual {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 2rem;
    }
}

/* ===== SAFEGUARDS FOR CONTACT METHODS ===== */
/* Some scripts may add global "hidden" classes or inline styles during
   runtime — enforce layout for contact-methods so they remain visible
   (we avoid forcing opacity so GSAP entrance animations still work). */
.contact-header .contact-methods {
    display: flex !important;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    z-index: 20; /* keep above decorative background */
}

.contact-header .contact-method {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    visibility: visible !important;
}

/* ===== DARK THEME SPECIFIC ===== */
[data-theme="dark"] .contact-header .header-background {
    opacity: 0.15;
}

[data-theme="dark"] .contact-method {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-form-container,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .social-links,
[data-theme="dark"] .calendar-visual {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-primary);
}

/* Fix dropdown options in dark mode */
[data-theme="dark"] .form-select option {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

/* Additional fallback for Webkit browsers */
[data-theme="dark"] select.form-select {
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text-primary);
    color-scheme: dark;
}

[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== PRINT STYLES ===== */
@media print {
    .contact-header,
    .availability-section,
    .footer,
    .theme-toggle,
    .modal {
        display: none;
    }

    .contact-form-section {
        padding: 1rem 0;
    }

    .contact-form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}