/* ==========================================================================
   CELESTIA FORMS — Wagyuya Paris × Celestia Wine Bar
   Transparent bg (inherits page emerald), gold accents, editorial serif
   Gold: #dfb26a | Headings: #ede7f2 | Text: #d8e4e0
   ========================================================================== */

/* --- WRAPPER (transparent — uses page bg) --- */
.celestia-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #d8e4e0;
    background: transparent !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- HEADER SECTION --- */
.cf-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cf-eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #dfb26a;
    margin-bottom: 1rem;
}

.cf-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    font-weight: 700;
    color: #ede7f2;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0;
    letter-spacing: 0.04em;
}

.cf-title em {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #dfb26a;
    font-size: 0.82em;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 0.15em;
}

.cf-divider {
    width: 42px;
    height: 2.5px;
    background: #1e5c52;
    border: none;
    margin: 2rem auto;
}

.cf-desc {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 400;
    font-style: italic;
    color: #a8b8b3;
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto;
}

.cf-notice {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.88rem;
    font-style: italic;
    color: #dfb26a;
    line-height: 1.7;
    max-width: 520px;
    margin: 1rem auto 0;
    opacity: 0.85;
}

/* --- FORM --- */
.cf-form {
    position: relative;
}

/* --- FIELDS GRID --- */
.cf-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    margin-bottom: 1rem;
}

.cf-field-group {
    margin-bottom: 0.9rem;
    position: relative;
}

.cf-w-100 { width: 100%; flex: 0 0 100%; }
.cf-w-50  { width: calc(50% - 14px); flex: 0 0 calc(50% - 14px); }
.cf-w-33  { width: calc(33.333% - 18.67px); flex: 0 0 calc(33.333% - 18.67px); }

/* --- LABELS --- */
.celestia-form-wrap .cf-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #dfb26a;
    margin-bottom: 0.65rem;
}

/* --- ALL INPUTS — dark transparent, NO white bg --- */
.celestia-form-wrap .cf-input,
.celestia-form-wrap input[type="text"],
.celestia-form-wrap input[type="email"],
.celestia-form-wrap input[type="tel"],
.celestia-form-wrap input[type="date"],
.celestia-form-wrap input[type="number"],
.celestia-form-wrap input[type="url"],
.celestia-form-wrap select,
.celestia-form-wrap textarea {
    display: block;
    width: 100%;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1rem !important;
    font-weight: 400;
    color: #d8e4e0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(223, 178, 106, 0.22) !important;
    border-radius: 0 !important;
    padding: 14px 16px !important;
    min-height: 50px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.celestia-form-wrap .cf-input:focus,
.celestia-form-wrap input:focus,
.celestia-form-wrap select:focus,
.celestia-form-wrap textarea:focus {
    border-color: #dfb26a !important;
    box-shadow: 0 0 0 1px rgba(223, 178, 106, 0.15) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    outline: none !important;
}

.celestia-form-wrap .cf-input::placeholder,
.celestia-form-wrap input::placeholder,
.celestia-form-wrap textarea::placeholder {
    color: rgba(168, 184, 179, 0.4) !important;

/* Hide number input spin buttons */
}
.celestia-form-wrap input[type="number"]::-webkit-outer-spin-button,
.celestia-form-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.celestia-form-wrap input[type="number"] {
    -moz-appearance: textfield;
}
    font-style: italic;
}

/* --- SELECT --- */
.celestia-form-wrap .cf-select,
.celestia-form-wrap select.cf-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23dfb26a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.celestia-form-wrap .cf-select option,
.celestia-form-wrap select option {
    background: #0b2824 !important;
    color: #d8e4e0 !important;
}

/* --- TEXTAREA --- */
.celestia-form-wrap .cf-textarea,
.celestia-form-wrap textarea.cf-input {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

/* --- DATE INPUT --- */
.celestia-form-wrap input[type="date"] {
    color-scheme: dark;
}

.celestia-form-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(0.4) hue-rotate(120deg);
    cursor: pointer;
    opacity: 0.7;
}

/* --- VALIDATION ERROR --- */
.cf-field-group.cf-has-error .cf-input {
    border-color: #c96a6a !important;
    box-shadow: 0 0 0 1px rgba(201, 106, 106, 0.15) !important;
}

.cf-error-msg {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    color: #e07070;
    margin-top: 0.45rem;
    letter-spacing: 0.02em;
}

.cf-field-group.cf-has-error .cf-error-msg {
    display: block;
}

/* --- TOAST NOTIFICATION --- */
.cf-toast {
    text-align: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #dfb26a;
    background: rgba(223, 178, 106, 0.08);
    border: 1px solid rgba(223, 178, 106, 0.2);
    border-radius: 0;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.cf-toast.cf-toast-show {
    opacity: 1;
    transform: translateY(0);
}

/* --- FIELD NOTES --- */
.cf-field-note {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.88rem;
    font-style: italic;
    color: #dfb26a;
    line-height: 1.5;
    margin: 0.6rem 0 0;
    opacity: 0.85;
}

/* --- PRIVACY CHECKBOX (Wagyuya-style subtle) --- */
.cf-privacy {
    margin: 2rem 0 2.2rem;
}

.cf-privacy.cf-has-error .cf-checkbox-label {
    color: #e07070;
}

.cf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0;
    cursor: pointer;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    color: #8a9e98;
    line-height: 1.6;
}

.celestia-form-wrap .cf-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
}

/* Custom checkbox indicator */
.cf-checkbox-label span {
    position: relative;
    padding-left: 22px;
}

.cf-checkbox-label span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(138, 158, 152, 0.4);
    border-radius: 1px;
    background: transparent;
    transition: all 0.2s ease;
}

.cf-checkbox-label input[type="checkbox"]:checked + span::before {
    background: #dfb26a;
    border-color: #dfb26a;
}

.cf-checkbox-label input[type="checkbox"]:checked + span::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 6px;
    width: 7px;
    height: 4px;
    border-left: 1.5px solid #071c19;
    border-bottom: 1.5px solid #071c19;
    transform: rotate(-45deg);
}

.cf-checkbox-label a {
    color: #8a9e98;
    text-decoration: none;
    border-bottom: 1px solid rgba(138, 158, 152, 0.3);
    transition: all 0.2s ease;
}

.cf-checkbox-label a:hover {
    color: #dfb26a;
    border-bottom-color: rgba(223, 178, 106, 0.4);
}

/* --- SUBMIT BUTTON (Wagyuya muted gold) --- */
.cf-submit-wrap {
    text-align: center;
    margin: 1.8rem 0 1rem;
}

.celestia-form-wrap .cf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    background: rgba(223, 178, 106, 0.78) !important;
    color: #071c19 !important;
    border: 1.5px solid #dfb26a !important;
    border-radius: 0 !important;
    padding: 13px 40px !important;
    min-width: 220px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: none !important;
}

.celestia-form-wrap .cf-submit-btn:hover {
    background: transparent !important;
    color: #dfb26a !important;
    border-color: #dfb26a !important;
    box-shadow: inset 0 0 0 1px rgba(223, 178, 106, 0.3) !important;
}

.celestia-form-wrap .cf-submit-btn:active {
    transform: translateY(0);
}

.celestia-form-wrap .cf-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.cf-submit-btn.cf-loading {
    pointer-events: none;
}

.cf-btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cf-btn-loading svg {
    animation: cf-spin 0.75s infinite linear;
}

@keyframes cf-spin {
    100% { transform: rotate(360deg); }
}

/* --- MESSAGES --- */
.cf-message {
    text-align: center;
    padding: 1.2rem 1.5rem;
    margin-top: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
    border-radius: 0;
}

.cf-message-success {
    color: #dfb26a;
    border: 1px solid rgba(223, 178, 106, 0.2);
    background: rgba(223, 178, 106, 0.05);
}

.cf-message-error {
    color: #e07070;
    border: 1px solid rgba(224, 112, 112, 0.2);
    background: rgba(224, 112, 112, 0.05);
}

/* --- SUCCESS OVERLAY --- */
.cf-success-overlay {
    text-align: center;
    padding: 3.5rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.cf-success-overlay.cf-success-show {
    opacity: 1;
    transform: translateY(0);
}

.cf-success-icon {
    font-size: 2.2rem;
    color: #dfb26a;
    margin-bottom: 1.5rem;
    animation: cf-pulse 2s ease-in-out infinite;
}

@keyframes cf-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.cf-success-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.8rem, 4vw, 2.4rem) !important;
    font-weight: 600 !important;
    color: #ede7f2 !important;
    margin: 0 0 0.6rem !important;
}

.cf-success-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.1rem !important;
    font-style: italic;
    color: #a8b8b3 !important;
    margin: 0 0 2rem !important;
}

.cf-success-divider {
    width: 42px;
    height: 2px;
    background: #dfb26a;
    margin: 0 auto 2rem;
    opacity: 0.6;
}

.cf-success-details {
    display: inline-block;
    text-align: left;
    margin: 0 auto 2rem;
    min-width: 220px;
}

.cf-success-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(223, 178, 106, 0.1);
}

.cf-success-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #dfb26a;
}

.cf-success-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: #d8e4e0;
}

.cf-success-note {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 0.95rem !important;
    font-style: italic;
    color: #8a9e98 !important;
    line-height: 1.7 !important;
    margin-top: 0.5rem !important;
}

/* --- BOTTOM NOTE (Wagyuya small gold caps) --- */
.cf-bottom-note {
    text-align: center;
    margin-top: 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #dfb26a;
    opacity: 0.8;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .celestia-form-wrap {
        padding: 2.5rem 1.2rem 2rem;
    }

    .cf-header {
        margin-bottom: 2.5rem;
    }

    .cf-title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .cf-fields {
        gap: 0;
    }

    .cf-w-50,
    .cf-w-33 {
        width: 100%;
        flex: 0 0 100%;
    }

    .celestia-form-wrap .cf-submit-btn {
        width: 100%;
        min-width: unset;
        padding: 13px 24px !important;
    }

    .cf-desc,
    .cf-notice {
        font-size: 0.9rem;
    }
}
