/**
 * Qulbay Child Theme — Contact Page Styles
 * Template: page-contact.php
 * RUN_ID: QLB-PUBLIC-PAGES-01
 * Version: 1.0.0
 *
 * Design system: staff-portal.css truck-art tokens.
 * No inline CSS — all rules here.
 * Font: Poppins (loaded in template <head>)
 */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
    --qlb-ct-deep-purple:  #4B0082;
    --qlb-ct-magenta:      #8B0000;
    --qlb-ct-maroon-hover: #6B0000;
    --qlb-ct-apple-green:  #8DB600;
    --qlb-ct-yellow:       #FFD700;
    --qlb-ct-pink:         #E91E63;
    --qlb-ct-orange:       #FF5722;
    --qlb-ct-blue:         #00BCD4;
    --qlb-ct-off-white:    #F4F7F2;
    --qlb-ct-text:         #1A1A1A;
    --qlb-ct-whatsapp:     #25D366;
    --qlb-ct-gradient: linear-gradient(
        90deg,
        #FFD700 0%,    #FFD700 16.6%,
        #E91E63 16.6%, #E91E63 33.3%,
        #FF5722 33.3%, #FF5722 50%,
        #8DB600 50%,   #8DB600 66.6%,
        #00BCD4 66.6%, #00BCD4 83.3%,
        #4B0082 83.3%, #4B0082 100%
    );
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
body.qlb-contact *,
body.qlb-contact *::before,
body.qlb-contact *::after {
    box-sizing: border-box;
}

body.qlb-contact {
    background: var(--qlb-ct-off-white);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--qlb-ct-text);
    -webkit-font-smoothing: antialiased;
}

/* Hide TT25 chrome */
body.qlb-contact .wp-site-blocks > header,
body.qlb-contact .wp-site-blocks > footer,
body.qlb-contact .site-header,
body.qlb-contact .site-footer,
body.qlb-contact #masthead,
body.qlb-contact #colophon {
    display: none !important;
}
body.qlb-contact .wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Rainbow strip ──────────────────────────────────────────────────────── */
.qlb-ct-truck-border {
    height: 8px;
    background: var(--qlb-ct-gradient);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* ── Brand black sticky nav ─────────────────────────────────────────────── */
.qlb-nav {
    position: sticky;
    top: 8px;
    z-index: 1000;
    background: #0b0b0b;
    height: 64px;
    display: flex;
    align-items: center;
}

.qlb-nav .qlb-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.qlb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.qlb-logo-box {
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qlb-logo-box span {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.qlb-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #ffffff;
    letter-spacing: 0.06em;
}

.qlb-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qlb-nav-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.qlb-nav-links a:hover,
.qlb-nav-links a.qlb-nav-active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
}

.qlb-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.qlb-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.qlb-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #0b0b0b;
    z-index: 999;
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 4px;
}

.qlb-mobile-menu.open { display: flex; }

.qlb-mobile-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.qlb-mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 767px) {
    .qlb-nav-links { display: none; }
    .qlb-hamburger { display: flex; }
}

/* ── Page wrapper ───────────────────────────────────────────────────────── */
.qlb-ct-page {
    padding-top: 8px;
}

/* ── Hero band — text left | photos right, fixed height ─────────────── */
.qlb-ct-hero {
    background: var(--qlb-ct-magenta);
    display: flex;
    flex-direction: row;
    align-items: center;       /* vertical centre both columns */
    gap: 20px;
    padding: 0 5%;             /* no top/bottom padding — height set explicitly */
    height: 220px;             /* fixed: photos won't push it taller */
    overflow: hidden;
    position: relative;
}

/* Left column: tag + h1 + p */
.qlb-ct-hero-text {
    flex: 0 0 auto;
    max-width: 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qlb-ct-hero-tag {
    display: inline-block;
    background: #25D366;
    color: #000000;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.qlb-ct-hero h1 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 800;
    margin: 0 0 7px;
    line-height: 1.15;
}

.qlb-ct-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    max-width: 260px;
    margin: 0;
    line-height: 1.45;
}

/* Right column: 4 polaroids in a single horizontal row */
.qlb-ct-hero-photos {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;       /* centre cards vertically in the hero */
    justify-content: center;   /* centre the whole row horizontally */
    gap: 10px;
    overflow: hidden;
    height: 100%;              /* fill the fixed hero height */
    padding: 16px 0;           /* equal space top + bottom inside hero */
}

/* Polaroid card — each takes equal share of available width */
.qlb-ct-polaroid {
    background: #ffffff;
    padding: 6px 6px 22px;     /* thick bottom = polaroid white strip */
    box-shadow:
        0 6px 18px rgba(0,0,0,0.45),
        0 1px 3px rgba(0,0,0,0.20);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Each card: equal flexible width, min 0 to allow shrink */
    flex: 1 1 0;
    min-width: 0;
    max-width: 160px;          /* cap so they don't get huge on wide screens */
    margin: 0;
    cursor: default;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Subtle tilt per card for the classic Polaroid scatter feel */
.qlb-ct-polaroid:nth-child(1) { transform: rotate(-2.0deg); }
.qlb-ct-polaroid:nth-child(2) { transform: rotate( 1.5deg); }
.qlb-ct-polaroid:nth-child(3) { transform: rotate(-1.8deg); }
.qlb-ct-polaroid:nth-child(4) { transform: rotate( 2.2deg); }

.qlb-ct-polaroid:hover {
    transform: rotate(0deg) scale(1.07);
    box-shadow: 0 14px 36px rgba(0,0,0,0.55);
    z-index: 4;
    position: relative;
}

/* Image area: fixed aspect ratio so images never break layout */
.qlb-ct-polaroid-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #c0c0c0;
    display: block;
    filter: contrast(1.06) saturate(1.10) brightness(1.02);
}

.qlb-ct-polaroid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Caption — inside the white polaroid strip at bottom */
.qlb-ct-polaroid-cap {
    font-family: 'Poppins', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    color: #222222;
    text-align: center;
    padding-top: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    width: 100%;
    margin: 0;
}

/* ── Mobile: stack hero vertically, 2 photos only ───────────────── */
@media (max-width: 720px) {
    .qlb-ct-hero {
        flex-direction: column;
        height: auto;
        padding: 20px 5% 16px;
        gap: 14px;
        align-items: flex-start;
    }
    .qlb-ct-hero-text {
        max-width: 100%;
    }
    .qlb-ct-hero-photos {
        width: 100%;
        height: auto;
        padding: 0;
        justify-content: flex-start;
        gap: 8px;
    }
    /* Show only first 2 cards on mobile */
    .qlb-ct-polaroid:nth-child(3),
    .qlb-ct-polaroid:nth-child(4) {
        display: none;
    }
    .qlb-ct-polaroid {
        max-width: 48%;
    }
}

/* ── Content section ──────────────────────────────────────────────────────────── */
.qlb-ct-section {
    max-width: 960px;
    margin: 24px auto 0;
    padding: 0 5% 60px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    align-items: start;
}

/* ── Info card (left) ───────────────────────────────────────────────────── */
.qlb-ct-info {
    background: #FFFDE7;
    border-radius: 16px;
    padding: 32px 28px;
    color: var(--qlb-ct-text);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1.5px solid #FFE082;
}

.qlb-ct-info h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: #B8860B;
}

.qlb-ct-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.qlb-ct-info-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.qlb-ct-info-item h3 {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 3px;
}

.qlb-ct-info-item p {
    font-size: 13.5px;
    color: #0b0b0b;
    margin: 0;
    line-height: 1.5;
}

.qlb-ct-info-item a {
    color: var(--qlb-ct-magenta);
    font-weight: 700;
    text-decoration: none;
}

.qlb-ct-info-item a:hover {
    text-decoration: underline;
    color: var(--qlb-ct-maroon-hover);
}

/* ── WhatsApp button ────────────────────────────────────────────────────── */
.qlb-ct-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--qlb-ct-whatsapp);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    margin-top: 4px;
    transition: background 0.18s ease, transform 0.18s ease;
    width: fit-content;
}

.qlb-ct-wa-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

.qlb-ct-wa-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* ── Contact form card (right) ──────────────────────────────────────────── */
.qlb-ct-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    border-top: 5px solid var(--qlb-ct-magenta);
}

.qlb-ct-form-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--qlb-ct-magenta);
    margin: 0 0 6px;
}

.qlb-ct-form-card > p {
    font-size: 13.5px;
    color: #777;
    margin: 0 0 24px;
}

/* ── Form fields ────────────────────────────────────────────────────────── */
.qlb-ct-field {
    margin-bottom: 18px;
}

.qlb-ct-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--qlb-ct-text);
    margin-bottom: 6px;
}

.qlb-ct-field input,
.qlb-ct-field select,
.qlb-ct-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #dde1e7;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--qlb-ct-text);
    background: #fafafa;
    transition: border-color 0.15s;
    outline: none;
}

.qlb-ct-field input:focus,
.qlb-ct-field select:focus,
.qlb-ct-field textarea:focus {
    border-color: var(--qlb-ct-magenta);
    background: #ffffff;
}

.qlb-ct-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* ── Math captcha row ───────────────────────────────────────────────────── */
.qlb-ct-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.qlb-ct-captcha-question {
    background: var(--qlb-ct-off-white);
    border: 1.5px solid #dde1e7;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--qlb-ct-magenta);
    white-space: nowrap;
}

.qlb-ct-captcha label {
    font-size: 13px;
    font-weight: 700;
    color: var(--qlb-ct-text);
    white-space: nowrap;
}

.qlb-ct-captcha input {
    width: 80px;
    padding: 10px 12px;
    border: 1.5px solid #dde1e7;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}

.qlb-ct-captcha input:focus {
    border-color: var(--qlb-ct-magenta);
}

/* ── Honeypot (hidden from humans, visible to bots) ─────────────────────── */
.qlb-ct-honey {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* ── Submit button ──────────────────────────────────────────────────────── */
.qlb-ct-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--qlb-ct-magenta);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    width: 100%;
    justify-content: center;
}

.qlb-ct-submit:hover {
    background: var(--qlb-ct-maroon-hover);
    transform: translateY(-2px);
}

/* ── Notices ────────────────────────────────────────────────────────────── */
.qlb-ct-notice {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.qlb-ct-notice--success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.qlb-ct-notice--error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

/* ── Floating WhatsApp bubble ───────────────────────────────────────────── */
.qlb-wa-float {
    position: fixed;
    bottom: 24px;
    right: 2px;
    left: auto;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* label + circle right-aligned */
    gap: 8px;
    text-decoration: none;
}

.qlb-wa-float:hover .qlb-wa-circle {
    background: #1da851;
    transform: scale(1.06);
}

/* Label is ALWAYS visible — not hover-only */
.qlb-wa-label {
    background: #0b0b0b;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    padding: 9px 13px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.28);
    text-align: right;
    pointer-events: none;
}

.qlb-wa-label strong {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: #25D366;
    margin-bottom: 3px;
    letter-spacing: 0.01em;
}

.qlb-wa-label span {
    display: block;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    font-size: 10.5px;
    line-height: 1.35;
}

.qlb-wa-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--qlb-ct-whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
    align-self: flex-start;
}

.qlb-wa-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid rgba(37,211,102,0.4);
    animation: qlb-wa-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes qlb-wa-pulse {
    0%   { transform: scale(1);    opacity: 0.8; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

.qlb-wa-circle svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.qlb-ct-footer {
    background: #0b0b0b;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 12.5px;
    padding: 24px 20px;
}

.qlb-ct-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.15s;
}

.qlb-ct-footer a:hover { color: var(--qlb-ct-yellow); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .qlb-ct-section {
        grid-template-columns: 1fr;
    }
    .qlb-ct-hero {
        padding: 16px 5% 24px;
    }
    .qlb-ct-form-card {
        padding: 28px 20px;
    }
}
