/* assets/css/contact.css - Premium Light Theme (Clean & Professional) */

:root {
    --brand-navy: #0a192f;
    --brand-red: #d90429;
    --brand-red-light: #fff0f2;
    --brand-blue: #2563eb;
    --brand-blue-light: #eff6ff;

    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body.light-theme-override {
    background-color: var(--bg-light) !important;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.premium-contact-wrapper {
    width: 100%;
    min-height: 100vh;
}

.container-clean {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Redesign (Premium Dark) */
.contact-hero {
    position: relative;
    padding: clamp(5rem, 10vw, 10rem) 0 clamp(2.5rem, 5vw, 6rem) 0;
    background: #0f172a;
    color: #ffffff;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1600'); /* Professional Office/Industrial fallback */
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
}

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 2;
}

@keyframes hero-entrance {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.contact-hero .container {
    position: relative;
    z-index: 3;
    animation: hero-entrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge-red {
    display: inline-block;
    background: rgba(15, 44, 89, 0.05);
    color: var(--brand-red);
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    border: 1px solid rgba(15, 44, 89, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    animation: float 4s ease-in-out infinite;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.hero-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white !important;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-wa-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.hero-desc {
    color: #e2e8f0;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0;
    font-weight: 400;
}

/* Trust Section */
.trust-section {
    padding: 35px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--brand-navy);
}

.trust-content p {
    font-size: 0.85rem;
    margin: 4px 0 0 0;
    color: var(--text-muted);
}

/* Page Content */
.contact-content {
    padding: clamp(2rem, 5vw, 60px) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
    /* CRITICAL: prevents grid from stretching columns to equal height, which breaks sticky */
}

/* Contact Cards */
.contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    flex: 1;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px rgba(15, 44, 89, 0.08);
    border-color: var(--brand-red);
}

.card-icon {
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.icon-red {
    background: var(--brand-red-light);
    color: var(--brand-red);
}

.icon-blue {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.icon-navy {
    background: #f1f5f9;
    color: var(--brand-navy);
}

.card-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.card-text p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-link {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--brand-red);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 15px;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-link:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Form Card */
.contact-form-col {
    position: relative;
    /* Do NOT set height: 100% — it breaks position: sticky */
    align-self: start;
}

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 35px 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
    z-index: 10;
}

.form-title {
    color: var(--brand-navy);
    font-size: 1.85rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.clean-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Floating Labels — Material Design inline style */
.form-floating-group {
    position: relative;
    margin-bottom: 16px;
}

.form-floating-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--brand-navy);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    line-height: 1.5;
    outline: none;
}

.form-floating-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 400;
    background: transparent;
    padding: 0 4px;
    white-space: nowrap;
}

/* Textarea: label starts at top, not centered */
textarea.form-floating-input {
    padding-top: 14px;
    resize: vertical;
    min-height: 120px;
}

textarea.form-floating-input+.form-floating-label {
    top: 18px;
    transform: none;
}

/* When focused or filled: label flies up to sit ON the border edge */
.form-floating-input:focus+.form-floating-label,
.form-floating-input:not(:placeholder-shown)+.form-floating-label,
textarea.form-floating-input:focus+.form-floating-label,
textarea.form-floating-input:not(:placeholder-shown)+.form-floating-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-red);
    background: var(--card-bg);
    padding: 0 5px;
}

/* Focus border highlight */
.form-floating-input:focus {
    border-color: var(--brand-red);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.08);
    transform: translateY(-2px);
}

/* Static float: for select / file inputs */
.form-floating-input.static-float+.form-floating-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-navy);
    background: var(--card-bg);
    padding: 0 5px;
}

.form-floating-input.static-float:focus+.form-floating-label {
    color: var(--brand-red);
}

.select-wrapper {
    position: relative;
}

.select-input {
    appearance: none;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.submit-btn {
    background: linear-gradient(135deg, var(--brand-red) 0%, #bd0424 100%);
    color: #ffffff;
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    align-self: flex-start;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.2);
}

.form-trust-text {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-trust-text svg {
    color: var(--brand-blue);
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(217, 4, 41, 0.3);
}

/* Form Trust Signals Grid */
.form-trust-signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.signal-item {
    text-align: center;
}

.signal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--brand-blue);
}

.signal-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.2;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Map */
.map-container {
    margin-top: 60px;
    border-radius: 20px;
    padding: 0;
    background: transparent;
    box-shadow: 0 30px 60px rgba(15, 44, 89, 0.1);
    overflow: hidden;
}

.map-iframe {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-container:hover .map-iframe {
    filter: none;
}

/* Sticky Action Bar */
.sticky-contact-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(15px);
    padding: 14px 32px;
    border-radius: 100px;
    display: flex;
    gap: 40px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.sticky-contact-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.sticky-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.sticky-link:hover {
    color: var(--brand-blue);
    transform: translateY(-2px);
}

.sticky-link svg {
    width: 18px;
    height: 18px;
}

/* Hide reCAPTCHA badge and potential overlap issues */
.grecaptcha-badge { 
    visibility: hidden !important; 
    opacity: 0 !important;
}
[style*="background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px; position: fixed; right: 0px; bottom: 0px;"] {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .container-clean {
        padding: 0 16px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-hero .container,
    .contact-hero .container-clean {
        text-align: center;
    }

    .badge-red {
        display: inline-block;
    }

    .hero-desc {
        margin: 0 auto;
        max-width: 90%;
    }

    .hero-title {
        font-size: 2.22rem;
        text-align: center;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
    }

    .hero-wa-btn, .submit-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        margin: 0 auto;
        padding: 0 !important;
        display: grid;
    }

    .trust-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        padding: 14px 10px;
        gap: 8px;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        height: 100%;
        min-height: auto;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    }

    .trust-icon {
        margin: 0 auto 4px auto;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eff6ff;
        border-radius: 12px;
    }
    
    .trust-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        flex: 1;
    }
    
    .trust-content h4 {
        font-size: 0.9rem;
        font-weight: 700;
        margin: 0;
        line-height: 1.3;
    }
    
    .trust-content p {
        font-size: 0.78rem;
        margin: 0;
        line-height: 1.4;
        color: #64748b;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 14px !important;
        gap: 10px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .contact-card + .contact-card {
        margin-top: 10px !important;
    }

    .contact-info-col .icon-box {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    .contact-info-col .icon-box i {
        font-size: 16px !important;
    }

    .card-text h3 {
        font-size: 15px !important;
        margin-bottom: 4px !important;
    }

    .card-text p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    .form-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .clean-form {
        gap: 6px;
    }

    .form-floating-group {
        margin-bottom: 4px;
    }

    .form-row {
        gap: 8px;
    }

    .form-floating-input {
        padding: 10px 12px;
        font-size: 0.92rem;
    }

    .form-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .form-subtitle {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }

    .form-trust-signals {
        margin-top: 16px;
        padding-top: 16px;
    }

    textarea.form-floating-input {
        min-height: 80px;
    }

    .submit-btn {
        width: 100%;
    }

    .sticky-contact-bar {
        width: 90%;
        justify-content: space-around;
        gap: 10px;
        padding: 12px 15px;
    }

    .sticky-link span {
        display: none;
    }
}

/* Loader */
.loader-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}