/* ===== CONTACT PAGE - SPLIT FORM LAYOUT REDESIGN ===== */

/* Full Page Container */
.contact-fullpage {
    width: 100%;
    min-height: 100vh;
    background: var(--surface-base, #0D1117);
    overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.contact-hero-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--surface-base, #0D1117) 0%, var(--surface-elevated, #161B22) 100%);
    overflow: hidden;
}

/* Background Shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--token-primary, #E63946);
    top: -100px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--token-secondary, #00F5D4);
    bottom: -50px;
    left: -50px;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--token-accent, #7B2CBF);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseShape 10s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes pulseShape {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.03; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 30px;
    color: var(--token-secondary, #00F5D4);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.contact-hero-title {
    margin: 0;
}

.title-line {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
}

.title-line:first-child {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary, #fff);
}

.title-line.gradient-text {
    font-size: clamp(3rem, 8vw, 6rem);
    background: linear-gradient(135deg, #E63946, #7B2CBF, #00F5D4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary, #8b949e);
    margin-top: 1.5rem;
    max-width: 500px;
}

/* ===== QUICK CONTACTS SECTION ===== */
.quick-contacts-section {
    padding: 3rem 2rem;
    background: var(--surface-elevated, #161B22);
}

.quick-contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.quick-contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-icon-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.2);
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0; }
}

.card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 0.25rem;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary, #8b949e);
    margin: 0;
}

.card-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--text-secondary, #8b949e);
    transition: transform 0.3s ease;
}

.quick-contact-card:hover .card-arrow {
    transform: translateX(5px);
    color: var(--token-primary, #E63946);
}

/* Card Variants */
.quick-contact-card.emergency {
    border-color: rgba(230, 57, 70, 0.2);
    background: rgba(230, 57, 70, 0.05);
}

.quick-contact-card.emergency:hover {
    border-color: rgba(230, 57, 70, 0.5);
    background: rgba(230, 57, 70, 0.1);
}

/* ===== SPLIT LAYOUT SECTION ===== */
.contact-split-section {
    padding: 4rem 2rem;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Form Panel */
.form-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
}

.form-panel-header {
    margin-bottom: 2rem;
}

.form-panel-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary, #fff);
    margin: 0 0 0.5rem;
}

.form-panel-subtitle {
    color: var(--text-secondary, #8b949e);
    font-size: 0.95rem;
    margin: 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.floating-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary, #8b949e);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 0.25rem;
}

.modern-input,
.modern-textarea,
.modern-select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary, #fff);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-input:focus,
.modern-textarea:focus,
.modern-select:focus {
    outline: none;
    border-color: var(--token-primary, #E63946);
    background: rgba(230, 57, 70, 0.05);
}

.modern-input:focus + .input-focus-line,
.modern-textarea:focus + .input-focus-line {
    transform: scaleX(1);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--token-primary, #E63946), var(--token-secondary, #00F5D4));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}

/* Floating label animation */
.modern-input:focus ~ .floating-label,
.modern-input:not(:placeholder-shown) ~ .floating-label,
.modern-textarea:focus ~ .floating-label,
.modern-textarea:not(:placeholder-shown) ~ .floating-label,
.modern-select:focus ~ .floating-label,
.modern-select:valid ~ .floating-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--token-primary, #E63946);
    background: var(--surface-base, #0D1117);
}

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

/* Select Styling */
.modern-select {
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary, #8b949e);
    font-size: 0.75rem;
    pointer-events: none;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--token-primary, #E63946), var(--token-accent, #7B2CBF));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.3);
}

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

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:active .btn-ripple {
    opacity: 1;
}

/* ===== INFO PANEL ===== */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
}

.info-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

/* Response Card */
.response-card {
    text-align: center;
    padding: 2rem;
}

.response-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--token-secondary, #00F5D4);
}

.status-dot.live {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 245, 212, 0); }
}

.status-text {
    font-size: 0.85rem;
    color: var(--token-secondary, #00F5D4);
    font-weight: 500;
}

.response-time {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.time-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    font-family: 'Space Grotesk', var(--font-display, sans-serif);
}

.time-unit {
    font-size: 1.2rem;
    color: var(--text-secondary, #8b949e);
}

.response-note {
    font-size: 0.85rem;
    color: var(--text-secondary, #8b949e);
    margin: 0;
}

/* Methods Card */
.method-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

a.method-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.method-icon {
    font-size: 1.25rem;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-value {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    font-weight: 500;
}

.emergency-method {
    border: 1px solid rgba(230, 57, 70, 0.2);
    background: rgba(230, 57, 70, 0.05);
}

/* Hours Card */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.day {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
}

.time {
    font-size: 0.85rem;
    color: var(--text-secondary, #8b949e);
}

.time.highlight {
    color: var(--token-secondary, #00F5D4);
    font-weight: 600;
}

.timezone-note {
    font-size: 0.8rem;
    color: var(--text-secondary, #8b949e);
    text-align: center;
    margin: 1rem 0 0;
    font-style: italic;
}

/* ===== FAQ TEASER SECTION ===== */
.faq-teaser-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.1), rgba(0, 245, 212, 0.05));
    text-align: center;
}

.faq-teaser-content {
    max-width: 600px;
    margin: 0 auto;
}

.faq-teaser-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary, #fff);
    margin: 0 0 1rem;
}

.faq-teaser-text {
    color: var(--text-secondary, #8b949e);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.faq-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text-primary, #fff);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

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

.faq-link-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ===== DARK MODE ===== */
body.dark-mode .contact-fullpage {
    background: var(--surface-base, #0D1117);
}

/* ===== LIGHT MODE ===== */
body:not(.dark-mode) .contact-fullpage {
    background: #f8fafc;
}

body:not(.dark-mode) .contact-hero-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

body:not(.dark-mode) .contact-hero-title .title-line:first-child {
    color: #1e293b;
}

body:not(.dark-mode) .hero-subtitle {
    color: #64748b;
}

body:not(.dark-mode) .quick-contacts-section {
    background: #f1f5f9;
}

body:not(.dark-mode) .quick-contact-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .quick-contact-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .card-content h3 {
    color: #1e293b;
}

body:not(.dark-mode) .card-content p {
    color: #64748b;
}

body:not(.dark-mode) .form-panel,
body:not(.dark-mode) .info-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .form-panel-title,
body:not(.dark-mode) .faq-teaser-title {
    color: #1e293b;
}

body:not(.dark-mode) .modern-input,
body:not(.dark-mode) .modern-textarea,
body:not(.dark-mode) .modern-select {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

body:not(.dark-mode) .modern-input:focus,
body:not(.dark-mode) .modern-textarea:focus,
body:not(.dark-mode) .modern-select:focus {
    background: rgba(230, 57, 70, 0.03);
}

body:not(.dark-mode) .modern-input:focus ~ .floating-label,
body:not(.dark-mode) .modern-input:not(:placeholder-shown) ~ .floating-label,
body:not(.dark-mode) .modern-textarea:focus ~ .floating-label,
body:not(.dark-mode) .modern-textarea:not(:placeholder-shown) ~ .floating-label {
    background: #f8fafc;
}

body:not(.dark-mode) .time-value,
body:not(.dark-mode) .day,
body:not(.dark-mode) .method-value {
    color: #1e293b;
}

body:not(.dark-mode) .method-item {
    background: rgba(0, 0, 0, 0.03);
}

body:not(.dark-mode) a.method-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .hours-row {
    background: rgba(0, 0, 0, 0.03);
}

body:not(.dark-mode) .faq-teaser-section {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.08), rgba(0, 245, 212, 0.03));
}

body:not(.dark-mode) .faq-link-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

body:not(.dark-mode) .faq-link-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .info-panel {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .quick-contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero-section {
        min-height: 40vh;
    }

    .split-container {
        grid-template-columns: 1fr;
    }

    .quick-contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-panel {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-split-section {
        padding: 2rem 1rem;
    }

    .quick-contacts-grid {
        grid-template-columns: 1fr;
    }

    .quick-contact-card {
        padding: 1.25rem;
    }

    .form-panel {
        padding: 1rem;
        border-radius: 16px;
    }

    .info-card {
        padding: 1.25rem;
    }

    .response-card {
        padding: 1.5rem;
    }

    .time-value {
        font-size: 2.5rem;
    }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .pulse-ring,
    .status-dot,
    .title-line.gradient-text {
        animation: none;
    }

    .quick-contact-card,
    .submit-btn,
    .faq-link-btn,
    .method-item {
        transition: none;
    }
}
