/* ============================================================
   FRANCHISE REGISTRATION FORM – ChimaeQ House
   Inspired by Bonchon Franchise Form, adapted to ChimaeQ brand
   ============================================================ */

/* ---------- SECTION ---------- */
.ff-section {
    padding: 5rem 0 0;
}

/* ---------- RED BANNER ---------- */
.ff-banner {
    background: var(--brand, #b01010);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative top/bottom border accent */
.ff-banner::before,
.ff-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--brand-dark, #7f0c0c);
}

.ff-banner::before { top: 0; }
.ff-banner::after  { bottom: 0; }

.ff-banner__inner {
    max-width: 800px;
    margin: 0 auto;
}

.ff-banner__logo {
    height: 90px;
    width: auto;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 0;
    filter: brightness(0) invert(1);
}

.ff-banner__title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.ff-banner__title span {
    color: var(--brand-light, #ffb22e);
}

.ff-banner__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
}

/* ---------- FORM CONTAINER ---------- */
.ff-form {
    background: #ffffff;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 0 0 var(--radius-lg, 32px) var(--radius-lg, 32px);
    box-shadow: 0 16px 48px rgba(62, 36, 3, 0.12);
    overflow: hidden;
}

.ff-form__inner {
    padding: 2.5rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------- ROWS ---------- */
.ff-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ff-row--full {
    grid-template-columns: 1fr;
}

/* ---------- FIELD ---------- */
.ff-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ff-field label {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.ff-req {
    color: var(--brand, #b01010);
    margin-left: 2px;
}

/* Inputs, selects, textareas */
.ff-field input[type="text"],
.ff-field input[type="email"],
.ff-field input[type="tel"],
.ff-field input[type="date"],
.ff-field select,
.ff-field textarea {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius-sm, 12px);
    background: #ffffff;
    color: #1a1a1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.ff-field input:focus,
.ff-field select:focus,
.ff-field textarea:focus {
    border-color: var(--brand, #b01010);
    box-shadow: 0 0 0 3px rgba(176, 16, 16, 0.12);
}

.ff-field input::placeholder,
.ff-field textarea::placeholder {
    color: #b0b0b0;
}

.ff-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.ff-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---------- RADIO GROUP ---------- */
.ff-radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-top: 0.5rem;
    min-height: 44px;
}

.ff-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
}

.ff-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand, #b01010);
    cursor: pointer;
}

/* ---------- ERROR STATE ---------- */
.ff-field--error input,
.ff-field--error select,
.ff-field--error textarea {
    border-color: var(--brand, #b01010);
    background: rgba(176, 16, 16, 0.03);
}

.ff-field--error label {
    color: var(--brand, #b01010);
}

/* ---------- SUBMIT ---------- */
.ff-submit-row {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.ff-submit-btn {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--brand, #b01010);
    border: none;
    border-radius: var(--radius-sm, 12px);
    padding: 1rem 3.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 24px rgba(176, 16, 16, 0.25);
}

.ff-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(176, 16, 16, 0.4);
    background: var(--brand-dark, #7f0c0c);
}

.ff-submit-btn:active {
    transform: translateY(0);
}

.ff-submit-btn:disabled {
    cursor: default;
    opacity: 0.9;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .ff-form__inner {
        padding: 1.75rem 1.5rem 2rem;
    }

    .ff-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .ff-banner {
        padding: 2rem 1.25rem 1.5rem;
    }

    .ff-banner__logo {
        height: 70px;
    }

    .ff-banner__title {
        font-size: 1.2rem;
    }
}

@media (max-width: 420px) {
    .ff-form__inner {
        padding: 1.25rem 1rem 1.5rem;
    }

    .ff-radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .ff-submit-btn {
        width: 100%;
    }
}