@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Nunito+Sans:wght@300;400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --beige: #F5F0EB;
    --beige-dark: #E8DFD5;
    --white: #FFFFFF;
    --gold: #C5A467;
    --gold-light: #D4BC8B;
    --gold-dark: #A8884D;
    --text: #3A3A3A;
    --text-light: #7A7A7A;
    --shadow: rgba(160, 140, 110, 0.12);
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--beige);
    color: var(--text);
    line-height: 1.6;
    font-weight: 300;
}

/* ===== Header ===== */
header {
    text-align: center;
    padding: 50px 20px 30px;
    background: linear-gradient(180deg, var(--white) 0%, var(--beige) 100%);
}

header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 3px;
    text-transform: uppercase;
}

header .gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 16px auto;
}

header p {
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ===== Main ===== */
main {
    max-width: 780px;
    margin: 0 auto;
    padding: 10px 20px 60px;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px var(--shadow);
}

.card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.card .subtitle {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 22px;
}

/* ===== Radio — shooting type ===== */
.radio-group { display: flex; flex-direction: column; gap: 10px; }

.radio-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid var(--beige-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.radio-option:hover { border-color: var(--gold-light); background: #FDFBF8; }

.radio-option.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, #FDF9F3 0%, #FAF5ED 100%);
    box-shadow: 0 2px 10px rgba(197, 164, 103, 0.12);
}

.radio-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--beige-dark);
    border-radius: 50%;
    position: relative;
    transition: all 0.25s ease;
}

.radio-option.selected .radio-dot,
.pack-option.selected .radio-dot {
    border-color: var(--gold);
}

.radio-option.selected .radio-dot::after,
.pack-option.selected .radio-dot::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
}

.radio-label { flex: 1; }
.radio-label .name { font-weight: 600; font-size: 0.95rem; }
.radio-label .desc { font-size: 0.8rem; color: var(--text-light); }

.radio-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
}

/* ===== Checkboxes — options ===== */
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid var(--beige-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.checkbox-option:hover { border-color: var(--gold-light); background: #FDFBF8; }

.checkbox-option.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, #FDF9F3 0%, #FAF5ED 100%);
}

.check-box {
    width: 20px; height: 20px; min-width: 20px;
    border: 2px solid var(--beige-dark);
    border-radius: 5px;
    position: relative;
    transition: all 0.25s ease;
    margin-top: 1px;
}

.checkbox-option.selected .check-box {
    border-color: var(--gold);
    background: var(--gold);
}

.checkbox-option.selected .check-box::after {
    content: '';
    position: absolute;
    top: 2px; left: 5px;
    width: 6px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-label { flex: 1; }
.check-label .name { font-weight: 600; font-size: 0.95rem; }
.check-label .desc { font-size: 0.8rem; color: var(--text-light); }

.check-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
    margin-top: 1px;
}

/* ===== Sub-inputs (qty) ===== */
.sub-input {
    display: none;
    margin-top: 12px;
    padding-left: 34px;
}

.sub-input.visible { display: flex; align-items: center; gap: 10px; }

.sub-input label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.sub-input input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 1.5px solid var(--beige-dark);
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.sub-input input[type="number"]:focus {
    border-color: var(--gold);
}

/* ===== Packs ===== */
.pack-group { display: flex; flex-direction: column; gap: 10px; }

.pack-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--beige-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
}

.pack-option:hover { border-color: var(--gold-light); background: #FDFBF8; }

.pack-option.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, #FDF9F3 0%, #FAF5ED 100%);
    box-shadow: 0 2px 12px rgba(197, 164, 103, 0.15);
}

.pack-badge {
    position: absolute;
    top: -10px; right: 16px;
    background: var(--gold);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.pack-label { flex: 1; }
.pack-label .name { font-weight: 600; font-size: 0.95rem; }
.pack-label .desc { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }

.pack-discount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
}

/* ===== Summary ===== */
.summary-card {
    background: linear-gradient(135deg, #3A3A3A 0%, #2A2A2A 100%);
    color: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.summary-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.summary-lines { display: flex; flex-direction: column; gap: 8px; }

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 4px 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
}

.summary-line.visible {
    opacity: 1;
    max-height: 40px;
}

.summary-line .label { color: #CCCCCC; }
.summary-line .amount { font-weight: 600; }

.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 14px 0;
}

.summary-discount {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #8ED198;
    padding: 4px 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
}

.summary-discount.visible {
    opacity: 1;
    max-height: 40px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
}

.summary-total .label {
    font-size: 1rem;
    color: #CCCCCC;
}

.summary-total .amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--gold);
}

.summary-total .currency {
    font-size: 1.2rem;
}

/* ===== CTA Button ===== */
.cta-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cta-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(197, 164, 103, 0.35);
}

.cta-btn:disabled {
    background: var(--beige-dark);
    color: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 580px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.35s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover { color: var(--text); }

.modal h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Modal recap */
.modal-recap {
    background: var(--beige);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}

.modal-recap .recap-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.88rem;
}

.modal-recap .recap-line .recap-label { color: var(--text-light); }
.modal-recap .recap-line .recap-amount { font-weight: 600; }

.modal-recap .recap-line.discount { color: #4a9e5a; }

.modal-recap .recap-divider {
    height: 1px;
    background: var(--beige-dark);
    margin: 10px 0;
}

.modal-recap .recap-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-recap .recap-total .recap-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--gold-dark);
}

/* Form */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full { margin-bottom: 20px; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group .required { color: #C45B5B; }

.form-group input,
.form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--beige-dark);
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #C45B5B;
}

.form-error {
    font-size: 0.75rem;
    color: #C45B5B;
    margin-top: 4px;
    display: none;
}

.form-error.visible { display: block; }

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 30px 20px 40px;
    font-size: 0.8rem;
    color: var(--text-light);
}

footer a { color: var(--gold-dark); text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    header h1 { font-size: 1.8rem; letter-spacing: 1px; }
    .card, .summary-card { padding: 22px; }
    .radio-option, .checkbox-option, .pack-option { padding: 12px 14px; }
    .summary-total .amount { font-size: 2rem; }
    .modal { padding: 28px 22px; }
    .form-row { flex-direction: column; gap: 12px; }
}

/* ===== Animations ===== */
.card { animation: fadeUp 0.5s ease both; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4) { animation-delay: 0.24s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}