@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
}

.form-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #ffffff;
}

/* ─── 2-column grid ─── */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.input-grid input,
.full-width-input input {
    width: 100%;
    padding: 14px 16px;
    border: 2.5px solid #1a1a1a;
    border-radius: 12px;
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-grid input::placeholder,
.full-width-input input::placeholder {
    color: #888;
    font-weight: 400;
}

.input-grid input:focus,
.full-width-input input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

.full-width-input {
    margin-bottom: 20px;
}

/* ─── Delivery / Section styling ─── */
.delivery-section {
    margin-bottom: 20px;
}

.delivery-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.delivery-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px;
    font-weight: 400;
}

.disclaimer {
    font-size: 12px;
    color: #888;
    margin: 14px 0 0;
    font-weight: 400;
}

/* ─── Custom Radio ─── */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 4px 0;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-box {
    width: 22px;
    height: 22px;
    border: 2.5px solid #1a1a1a;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.custom-radio input:checked + .radio-box {
    border-color: #ff6b35;
    background: #ff6b35;
}

.custom-radio input:checked + .radio-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* ─── Custom Checkbox ─── */
.opt-in-section {
    margin-bottom: 20px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-box {
    width: 22px;
    height: 22px;
    border: 2.5px solid #1a1a1a;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
    transition: border-color 0.2s, background 0.2s;
}

.custom-checkbox input:checked + .check-box {
    border-color: #ff6b35;
    background: #ff6b35;
}

.custom-checkbox input:checked + .check-box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* ─── Submit ─── */
.submit-section {
    margin-top: 8px;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background: #ff6b35;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ─── Messages ─── */
.fsf-message {
    display: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.fsf-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.fsf-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 2px solid #c62828;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 24px 16px;
    }
}
