/* 
 * WP Falcons Contact Page Styles
 * Premium, secure, and performance-optimized
 */

/* Force Astra architecture to be truly full-width for this template */
.wp-falcons-contact-body #primary,
.wp-falcons-contact-body .ast-container,
.wp-falcons-contact-body #content .ast-container,
.wp-falcons-contact-body .site-content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-falcons-contact-body .site-content {
    padding: 0 !important;
}

/* Ensure the main element stretching */
.wp-falcons-contact-body .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* Fix for potential overflow or flex issues in Astra */
.wp-falcons-contact-body .ast-row {
    display: block !important;
    width: 100% !important;
}

.wp-falcons-contact-body {
    --primary: #044F4D;
    --primary-light: #066360;
    --accent: #00D9D9;
    --accent-glow: rgba(0, 217, 217, 0.4);
    --gold: #C9A84C;
    --gold-light: #E8C96A;
    --dark: #06090F; /* Slightly darker for better contrast */
    --dark-card: #0F172A;
    --text-muted: #CBD5E1; /* Lighter/Brighter than before */
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

/* Base Wrapper */
.contact-page-wrapper {
    background-color: var(--dark);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%; /* Ensure it spans full width */
}

/* Background Mesh */
.contact-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(at 0% 0%, rgba(4, 79, 77, 0.4) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(201, 168, 76, 0.15) 0px, transparent 50%),
                radial-gradient(at 50% 50%, rgba(0, 217, 217, 0.05) 0px, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 217, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* Layout */
.contact-container {
    margin: 0 auto;
    padding: 100px 5%;
    position: relative;
    z-index: 5;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Left Side: Info */
.contact-info-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    line-height: 1.05;
    color: var(--white) !important; /* Ensure visibility */
}

.contact-info-header h1 span {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info-header p {
    font-size: 1.35rem;
    color: var(--white); /* Brighter */
    opacity: 0.9;
    margin-bottom: 4rem;
    max-width: 550px;
    line-height: 1.6;
}

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

.info-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
}

.info-card:hover {
    background: rgba(201, 168, 76, 0.05);
    transform: translateX(10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.1);
}

.info-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.info-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Right Side: Form */
.contact-form-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 28, 0.95) 100%);
    border: 1px solid var(--border);
    padding: 4rem;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    backdrop-filter: blur(20px);
}

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

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold); /* Improved visibility */
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(5px);
}

.form-control:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea.form-control {
    min-height: 180px;
}

/* Select styling refined - Aggressive visibility fix */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1rem;
    
    /* Fix for text being pushed out of view */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 3.5rem !important;
    padding-left: 1.5rem !important;
    height: 64px !important;
    line-height: 64px !important;
    display: block;
    
    cursor: pointer;
    color: #ffffff !important; 
    background-color: rgba(255, 255, 255, 0.04) !important; /* Match other inputs */
}

select.form-control option {
    background-color: #1e293b !important; /* Slate 800 */
    color: #ffffff !important;
}

.form-control:focus,
select.form-control:focus,
select.form-control:active {
    outline: none !important;
    border-color: var(--gold) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.2) !important;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
    border: none;
    border-radius: 16px;
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(201, 168, 76, 0.2);
    filter: brightness(1.1);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Elite Badge */
.elite-badge {
    display: inline-flex;
    padding: 8px 16px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.form-title {
    margin-bottom: 2rem;
}

.form-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white) !important; /* Explicitly white */
}

.form-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Section Common */
.contact-section-padding {
    padding: 100px 5%;
}

.section-badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 3rem;
    line-height: 1.1;
    color: var(--white) !important; /* Force visibility */
}

h2 span {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 992px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

.cap-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cap-card:hover {
    background: var(--glass-hover);
    transform: translateY(-10px);
    border-color: var(--gold);
}

.cap-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.cap-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(40%) contrast(1.1);
}

.cap-card:hover .cap-img img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.cap-body {
    padding: 2.5rem;
}

.cap-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white) !important;
}

.cap-body p {
    color: var(--text-muted) !important;
    line-height: 1.6;
    margin: 0;
}

/* Process Section */
.process-wrap {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

@media (max-width: 992px) {
    .process-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.process-info p {
    font-size: 1.25rem;
    color: var(--white) !important;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.process-steps {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
    display: grid;
    gap: 2.5rem;
}

.process-steps li {
    display: flex;
    gap: 1.5rem;
}

.step-num {
    width: 44px;
    height: 44px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-txt strong {
    display: block;
    color: var(--white) !important;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    font-family: 'Outfit', sans-serif;
}

.step-txt span {
    color: var(--text-muted) !important;
    font-size: 1rem;
    line-height: 1.5;
}

.process-img-side {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.process-img-side img {
    width: 100%;
    display: block;
}

.process-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--dark-card);
    padding: 20px 30px;
    border-radius: 20px;
    border: 1px solid var(--gold);
    backdrop-filter: blur(10px);
}

.process-overlay b {
    display: block;
    font-size: 1.75rem;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.process-overlay span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
}

/* FAQ Custom */
.faq-compact-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-head {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-list {
    display: grid;
    gap: 1.5rem;
}

.faq-item-custom {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    padding: 1.75rem 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-trigger:hover {
    background: var(--glass-hover);
    color: var(--gold);
}

.faq-trigger span {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item-custom.active .faq-trigger span {
    transform: rotate(45deg);
}

.faq-content-custom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item-custom.active .faq-content-custom {
    max-height: 300px;
}

.faq-content-custom p {
    padding: 0 2rem 2rem;
    color: var(--text-muted) !important;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
}

/* ========================================================
   RESPONSIVE DESIGN OVERRIDES
   ======================================================== */

/* Tablet & Smaller Laptops */
@media (max-width: 992px) {
    .contact-info-header h1 {
        font-size: clamp(2.5rem, 7vw, 3.5rem);
    }
    
    .contact-form-card {
        padding: 3rem;
    }
}

/* Large Mobile / Standard Tablet */
@media (max-width: 768px) {
    .contact-container, 
    .contact-section-padding {
        padding: 60px 4%;
    }
    
    .contact-layout,
    .process-layout {
        gap: 50px;
    }

    .info-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .process-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        text-align: center;
        padding: 15px;
    }

    .faq-trigger {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }

    .faq-content-custom p {
        padding: 0 1.5rem 1.5rem;
        font-size: 1rem;
    }
    
    h2 {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 2rem;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .contact-form-card {
        padding: 1.75rem;
        border-radius: 20px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-control {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    select.form-control {
        height: 54px !important;
        line-height: 54px !important;
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        transform: scale(0.9);
    }
    
    .cap-body {
        padding: 1.5rem;
    }
    
    .cap-body h3 {
        font-size: 1.25rem;
    }
    
    .process-steps li {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-num {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}
