/* Care to Create | Quranic Creations registration
   Warm, modern, mobile-first styling. */

:root {
    --blush: #d9a5a0;
    --blush-dark: #c48782;
    --cream: #faf5ef;
    --cream-deep: #f2e9dd;
    --gold: #b8925a;
    --charcoal: #3a352f;
    --charcoal-soft: #6b6259;
    --white: #ffffff;
    --success: #6f8f6a;
    --error: #b3453f;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(58, 53, 47, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
    color: var(--charcoal);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    margin: 0 0 0.4em;
}

.page-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 18px 64px;
}

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand .kicker {
    display: inline-block;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
}

.brand h1 {
    font-size: clamp(24px, 5vw, 34px);
    color: var(--charcoal);
}

.brand p {
    color: var(--charcoal-soft);
    max-width: 520px;
    margin: 8px auto 0;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blush-dark);
    margin-bottom: 14px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--charcoal);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #e7ddce;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: var(--cream);
    color: var(--charcoal);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--blush);
    box-shadow: 0 0 0 3px rgba(217, 165, 160, 0.25);
    background: var(--white);
}

.phone-group {
    display: grid;
    grid-template-columns: 70px 1fr 1fr;
    gap: 10px;
}

.phone-group input {
    text-align: center;
    letter-spacing: 0.05em;
}

.help-text {
    font-size: 12.5px;
    color: var(--charcoal-soft);
    margin-top: 5px;
}

.error-text {
    font-size: 13px;
    color: var(--error);
    margin-top: 5px;
    font-weight: 600;
}

.error-banner {
    background: #fbe9e8;
    border: 1.5px solid #f0c4c1;
    color: var(--error);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Course option cards (radio) */
.course-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.course-option {
    position: relative;
    border: 2px solid #e7ddce;
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: var(--cream);
}

.course-option:hover {
    border-color: var(--blush);
}

.course-option input[type="radio"] {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 20px;
    height: 20px;
    accent-color: var(--blush-dark);
}

.course-option.selected {
    border-color: var(--blush-dark);
    background: #fdf3f1;
}

.course-option h3 {
    font-size: 17px;
    margin-bottom: 4px;
    padding-right: 34px;
}

.course-option .meta {
    font-size: 13.5px;
    color: var(--charcoal-soft);
    margin-bottom: 10px;
}

.course-option .meta strong {
    color: var(--charcoal);
}

.course-option .details {
    font-size: 13.5px;
    color: var(--charcoal-soft);
}

.badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-top: 4px;
}

.badge-open {
    background: #e7f0e5;
    color: var(--success);
}

.badge-low {
    background: #fbeed9;
    color: #a3711f;
}

.badge-waitlist {
    background: #f2e2e0;
    color: var(--error);
}

.fee-tag {
    font-weight: 700;
    color: var(--charcoal);
}

.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--blush-dark);
    color: var(--white);
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}

.btn:hover {
    background: #b17470;
}

.btn:active {
    transform: scale(0.99);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--charcoal);
    border: 1.5px solid #e7ddce;
}

.btn-secondary:hover {
    background: var(--cream);
}

.footnote {
    text-align: center;
    font-size: 12.5px;
    color: var(--charcoal-soft);
    margin-top: 24px;
}

.footnote a {
    color: var(--gold);
}

/* Confirmation page */
.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.confirm-icon.ok {
    background: #e7f0e5;
    color: var(--success);
}

.confirm-icon.wait {
    background: #f2e2e0;
    color: var(--error);
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0e8db;
    font-size: 14.5px;
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list .label {
    color: var(--charcoal-soft);
}

.summary-list .value {
    font-weight: 600;
    text-align: right;
}

.payment-box {
    background: var(--cream);
    border: 1.5px dashed var(--gold);
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
}

.payment-box h3 {
    font-size: 15px;
    color: var(--gold);
}

@media (max-width: 480px) {
    .form-row-split {
        grid-template-columns: 1fr;
    }

    .phone-group {
        grid-template-columns: 60px 1fr 1fr;
    }

    .card {
        padding: 18px;
    }
}
