/* =========================================================
   LAFIT Contact Form — Odoo 19 Frontend Styles
   ========================================================= */

:root {
    --lafit-accent:    #C8E600;
    --lafit-dark:      #111111;
    --lafit-text:      #1a1a1a;
    --lafit-muted:     #6b7280;
    --lafit-border:    #d1d5db;
    --lafit-bg-field:  #f9fafb;
    --lafit-bg-page:   #ffffff;
    --lafit-error:     #dc2626;
    --lafit-radius:    8px;
    --lafit-font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --lafit-ui-font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Page wrapper */
.lafit-wrap {
    background: var(--lafit-bg-page);
    min-height: 100vh;
    font-family: var(--lafit-ui-font);
}

.lafit-hero-section {
    padding: 48px 20px 80px;
}

.lafit-container {
    max-width: 700px;
    margin: 0 auto;
}

/* ---- Logo ---- */
.lafit-logo-wrap {
    margin-bottom: 20px;
}

.lafit-logo {
    width: 140px !important;
    height: auto !important;
    max-height: 50px !important;
    display: block;
    object-fit: contain;
}

/* ---- Heading ---- */
.lafit-heading {
    font-family: var(--lafit-font);
    font-size: 28px !important;
    font-weight: 400 !important;
    color: var(--lafit-dark);
    line-height: 1.3 !important;
    margin: 0 0 5px 0 !important;
    letter-spacing: -0.3px;
}

.lafit-subtext {
    font-size: 14px !important;
    color: var(--lafit-text);
    line-height: 1.5 !important;
    margin: 0 0 20px 0 !important;
    max-width: 550px !important;
    font-weight: 400 !important;
}

/* ---- Form Card ---- */
.lafit-form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
}

/* ---- Field Group ---- */
.lafit-field-group {
    margin-bottom: 28px;
    position: relative;
}

.lafit-label {
    display: block;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--lafit-dark);
    margin-bottom: 6px !important;
    letter-spacing: 0.01em;
    font-family: var(--lafit-font);
}

.lafit-required {
    color: var(--lafit-dark);
    margin-left: 2px;
}

/* ---- Inputs ---- */
.lafit-input {
    width: 100%;
    padding: 10px 14px !important;
    border: 1.5px solid var(--lafit-border);
    border-radius: var(--lafit-radius);
    background: var(--lafit-bg-field);
    font-size: 14px !important;
    color: var(--lafit-text);
    font-family: var(--lafit-font);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.lafit-input:focus {
    border-color: var(--lafit-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(200, 230, 0, 0.18);
}

.lafit-input.lafit-input-error {
    border-color: var(--lafit-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ---- Select ---- */
.lafit-select-wrap {
    position: relative;
}

.lafit-select {
    cursor: pointer;
    padding-right: 40px;
}

.lafit-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--lafit-muted);
    pointer-events: none;
    line-height: 1;
}

/* ---- Textarea ---- */
.lafit-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Field Errors ---- */
.lafit-field-error {
    display: none;
    color: var(--lafit-error);
    font-size: 0.82rem;
    margin-top: 6px;
    font-weight: 500;
}

.lafit-field-error.lafit-visible {
    display: block;
}

/* ---- Submit Button ---- */
.lafit-submit-wrap {
    margin-top: 36px;
}

.lafit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--lafit-accent);
    color: var(--lafit-dark);
    border: none;
    border-radius: var(--lafit-radius);
    padding: 12px 32px;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: var(--lafit-font);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    min-width: 140px;
}

.lafit-btn:hover {
    background: #b5d000;
    box-shadow: 0 4px 16px rgba(200, 230, 0, 0.4);
    transform: translateY(-1px);
}

.lafit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

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

/* ---- Spinner ---- */
.lafit-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(17,17,17,0.25);
    border-top-color: var(--lafit-dark);
    border-radius: 50%;
    animation: lafit-spin 0.65s linear infinite;
    display: inline-block;
}

@keyframes lafit-spin {
    to { transform: rotate(360deg); }
}

/* ---- Alert Messages ---- */
.lafit-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: var(--lafit-radius);
    padding: 16px 20px;
    font-size: 0.95rem;
    margin-top: 24px;
    line-height: 1.5;
}

.lafit-alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.lafit-alert-success {
    background: #f0fae0;
    color: #3a5c00;
    border: 1.5px solid #c3e87a;
}

.lafit-alert-success svg {
    stroke: #5a8a00;
}

.lafit-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fecaca;
}

.lafit-alert-error svg {
    stroke: #dc2626;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .lafit-hero-section {
        padding: 32px 16px 60px;
    }

    .lafit-btn {
        width: 100%;
    }
}