/*
Theme Name: SpaceIndex Consultants
Description: Premium Commercial Real Estate Consultants — Pune
Version: 1.0
Author: GK Digital
*/

/* =============================================
   MARQUEE / CLIENTS SLIDER
   ============================================= */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ── Client logo images — uniform large size ──
   Overrides Tailwind h-16 class sitewide.
   Applied to homepage + all old-style pages.   */
img.logo-img {
    height: 5.5rem !important;   /* 88px — up from h-16 = 64px */
    width: auto !important;
    max-width: 13rem !important;
    object-fit: contain !important;
    opacity: 0.95;
    filter: none !important;     /* full colour, no grayscale */
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0.375rem 0;
}
img.logo-img:hover {
    opacity: 1;
    transform: scale(1.06);
}


/* =============================================
   ENQUIRY MODAL — FORM FIELDS
   ============================================= */

/* Label */
.enq-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a192f;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}
.enq-label .req {
    color: #f87171;
    margin-left: 2px;
}

/* Clean field wrapper — no icon, no position:relative needed */
.enq-field {
    width: 100%;
}

/* Input & Textarea shared base */
.enq-input,
.enq-textarea {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;   /* uniform padding — no icon offset */
    font-size: 0.875rem;
    font-family: inherit;
    background-color: #ffffff;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.enq-input::placeholder,
.enq-textarea::placeholder {
    color: #b0b7c3;
}
.enq-input:focus,
.enq-textarea:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.enq-input:hover:not(:focus),
.enq-textarea:hover:not(:focus) {
    border-color: #c4cbda;
}

/* Textarea specific */
.enq-textarea {
    resize: none;
}

/* 2-column row (email + phone) */
.enq-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 520px) {
    .enq-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Submit button */
.enq-btn {
    width: 100%;
    background: linear-gradient(to right, #D4AF37, #eab308);
    color: #ffffff;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.enq-btn:hover {
    background: linear-gradient(to right, #C5A028, #ca8a04);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}
.enq-btn:active {
    transform: translateY(0);
}
.enq-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Privacy note under button */
.enq-privacy {
    font-size: 0.7rem;
    text-align: center;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Success / error status message */
.enq-status {
    display: none;
    font-size: 0.82rem;
    text-align: center;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}
.enq-status.success {
    display: block;
    background-color: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #15803d;
}
.enq-status.error {
    display: block;
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #b91c1c;
}

/* =============================================
   CONTACT FORM 7 — GLOBAL SITEWIDE STYLES
   Covers: PS page contact sections + modals
   ============================================= */

/* Wrapper: white background, zero padding — form handles its own spacing */
.wpcf7 {
    background: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Form layout */
.wpcf7-form,
.wpcf7 form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* CRITICAL: CF7 wraps every field in <p> tags with 1em top+bottom margin.
   That alone adds 100-200px of invisible whitespace. Zero it out. */
.wpcf7 p,
.wpcf7 form p {
    margin: 0 !important;
    padding: 0 !important;
}

/* CF7 also inserts <br> between fields — collapse them */
.wpcf7 br,
.wpcf7 form br {
    display: none !important;
    line-height: 0 !important;
    height: 0 !important;
}

/* All form control wrappers */
.wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* All inputs, selects — white bg, solid blue border */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select {
    width: 100% !important;
    background: #ffffff !important;
    border: 2px solid #2563EB !important;
    border-radius: 0.65rem !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.82rem !important;
    font-family: 'Inter', 'Montserrat', -apple-system, sans-serif !important;
    color: #0B1C35 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Textarea — white bg, blue border, compact height */
.wpcf7 textarea {
    width: 100% !important;
    background: #ffffff !important;
    border: 2px solid #2563EB !important;
    border-radius: 0.65rem !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.82rem !important;
    font-family: 'Inter', 'Montserrat', -apple-system, sans-serif !important;
    color: #0B1C35 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease !important;
    resize: vertical !important;
    min-height: 80px !important;
    max-height: 120px !important;
    height: 90px !important;
}

/* Focus states */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #1D4ED8 !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12) !important;
}

/* Placeholders — grey */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #9CA3AF !important;
    font-size: 0.78rem !important;
}

/* Labels */
.wpcf7 label,
.wpcf7 .wpcf7-list-item-label {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    display: block !important;
    margin-bottom: 0.25rem !important;
    letter-spacing: 0.02em !important;
    font-family: 'Inter', 'Montserrat', -apple-system, sans-serif !important;
}

/* Submit button */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    width: 100% !important;
    background: linear-gradient(135deg, #D4AF37 0%, #B8972A 100%) !important;
    color: #ffffff !important;
    font-family: 'Inter', 'Montserrat', -apple-system, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 9999px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(212,175,55,0.35) !important;
    transition: all 0.3s ease !important;
    margin-top: 0.25rem !important;
    -webkit-appearance: none !important;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(212,175,55,0.45) !important;
}

/* Response messages */
.wpcf7-response-output {
    border-radius: 0.65rem !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
    border-width: 1px !important;
    text-align: center !important;
}
.wpcf7-mail-sent-ok {
    background: rgba(16,185,129,0.08) !important;
    border-color: #10B981 !important;
    color: #059669 !important;
}
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background: rgba(239,68,68,0.06) !important;
    border-color: #EF4444 !important;
    color: #DC2626 !important;
}
.wpcf7-not-valid-tip {
    font-size: 0.68rem !important;
    color: #DC2626 !important;
    margin-top: 0.2rem !important;
    display: block !important;
}

/* Hide CF7 spinner */
.wpcf7 .ajax-loader,
.wpcf7 .wpcf7-spinner {
    display: none !important;
}

/* =============================================
   CONTACT SECTION — WHITE BOX + BLACK HEADINGS
   Targets the ps-glass form container inside
   the #contact section on all PS pages.
   ============================================= */
section#contact .ps-glass,
#contact .ps-glass {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(212,175,55,0.18) !important;
    padding: 1.25rem !important;  /* reduce from Tailwind p-8 = 2rem */
}

/* Heading (h3) inside contact form box — solid black, tight margin */
section#contact .ps-glass h3,
#contact .ps-glass h3 {
    color: #111827 !important;
    margin-bottom: 0.4rem !important;  /* reduce from mb-6 = 1.5rem */
}

/* Subheading paragraph inside contact form box — dark charcoal, tight margin */
section#contact .ps-glass > p,
section#contact .ps-glass p.text-gray-400,
section#contact .ps-glass p.text-xs,
#contact .ps-glass > p,
#contact .ps-glass p.text-gray-400,
#contact .ps-glass p.text-xs {
    color: #1f2937 !important;
    margin-bottom: 0.6rem !important;  /* reduce from mb-6 = 1.5rem */
}
