/* ── Smart Enquiry Form ────────────────────────────────────── */
.sef-wrapper * { box-sizing: border-box; }

.sef-wrapper {
    max-width: 780px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card wrapper — light elegant shadow matching the reference style */
.sef-wrapper {
    filter:
        drop-shadow(0 1px 3px rgba(0,0,0,0.06))
        drop-shadow(0 4px 12px rgba(0,0,0,0.08)) !important;
}
.sef-wrapper .sef-form-card {
    background: #ffffff !important;
    border-radius: 6px !important;
    padding: 36px 40px !important;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.06),
        0 4px 16px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    overflow: visible !important;
    position: relative !important;
}
@media (max-width: 600px) {
    .sef-wrapper .sef-form-card { padding: 24px 18px !important; }
}

/* Messages */
.sef-wrapper .sef-messages {
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    padding: 20px 24px;
    text-align: center;
    margin: 0;
}
.sef-wrapper .sef-messages.sef-success {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1.5px solid #bbf7d0 !important;
}
.sef-wrapper .sef-messages.sef-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1.5px solid #fecaca !important;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 14px;
    font-size: 0.93rem;
    text-align: left;
}
.sef-wrapper .sef-success-icon  { display:block; font-size:2.6rem; margin-bottom:10px; }
.sef-wrapper .sef-success-title { font-size:1.2rem; font-weight:700; margin-bottom:6px; color:#166534; }
.sef-wrapper .sef-success-text  { font-size:0.93rem; color:#4b7a5e; }

/* Form layout */
.sef-wrapper .sef-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Fields */
.sef-wrapper .sef-field { position: relative; width: 100%; }

.sef-wrapper .sef-field input,
.sef-wrapper .sef-field textarea,
.sef-wrapper .sef-field select {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 0.97rem !important;
    color: #333 !important;
    background: #f7f7f7 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.sef-wrapper .sef-field input::placeholder,
.sef-wrapper .sef-field textarea::placeholder {
    color: #aaa !important;
    font-size: 0.94rem !important;
}

/* Focus — applied via JS using the colour from settings */
.sef-wrapper .sef-field input:focus,
.sef-wrapper .sef-field textarea:focus,
.sef-wrapper .sef-field select:focus {
    background: #fff !important;
    outline: none !important;
}

/* Validation error */
.sef-wrapper .sef-field input.sef-invalid,
.sef-wrapper .sef-field textarea.sef-invalid {
    border-color: #ef4444 !important;
    background: #fff !important;
}

/* Email icon */
.sef-wrapper .sef-field--icon input { padding-right: 48px !important; }
.sef-wrapper .sef-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Textarea */
.sef-wrapper .sef-field textarea {
    resize: vertical !important;
    min-height: 150px !important;
}

/* Submit */
.sef-wrapper .sef-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}
.sef-wrapper .sef-btn {
    background: #C9A96E !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 56px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
    min-width: 220px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(201,169,110,0.35) !important;
    line-height: 1 !important;
}
.sef-wrapper .sef-btn:hover {
    filter: brightness(0.92) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(201,169,110,0.45) !important;
}
.sef-wrapper .sef-btn:active  { transform: scale(0.98) !important; }
.sef-wrapper .sef-btn:disabled { opacity: 0.7 !important; cursor: not-allowed !important; transform: none !important; }

/* Spinner */
.sef-spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sef-spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes sef-spin { to { transform: rotate(360deg); } }

/* Honeypot */
.sef-hp-field { position:absolute; left:-9999px; opacity:0; height:0; overflow:hidden; }

@media (max-width: 520px) {
    .sef-wrapper .sef-btn { width:100% !important; padding:15px 20px !important; min-width:unset !important; }
}
