/* style.css - Refreshing & High-Quality Design for Housewives */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #7ab3a1; /* Sage Green / Mint */
    --primary-hover: #5d9382;
    --bg-color: #f7f9f8;     /* Very Light Grey-Green tint */
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --accent-color: #e67e22; /* Warm Orange for highlights */
    --alert-color: #e74c3c;
    --border-color: #e2e8e6;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    padding: 40px 15px;
    background-image: 
        radial-gradient(at 0% 0%, rgba(122, 179, 161, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(122, 179, 161, 0.05) 0px, transparent 50%);
    min-height: 100vh;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

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

/* Header & Banner */
.header-banner {
    text-align: center;
    padding: 50px 30px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f4 100%);
    border-bottom: 1px solid var(--border-color);
}

.header-banner p.med-achieve {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.header-banner h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1.4;
    font-weight: 700;
}

/* Sections */
.bio-section, .info-section {
    padding: 40px 60px;
    border-bottom: 1px solid var(--border-color);
}

.bio-section p {
    font-size: 0.95rem;
    color: #4a5568;
}

.bio-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    background: #f8faf9;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #edf2f0;
}

.feature-box h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-details {
    padding: 30px 60px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    width: 80px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.detail-content {
    flex: 1;
    font-size: 0.95rem;
}

/* Info Elements */
.info-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
}

.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.fee-item:last-child { border-bottom: none; }

.bring-list {
    list-style: none;
}

.bring-item {
    margin-bottom: 10px;
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 0.95rem;
}

.bring-item i { color: var(--primary-color); margin-top: 5px; }

/* Form Area */
.form-body {
    padding: 50px 60px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.form-group label span.req {
    color: var(--alert-color);
    font-size: 0.75rem;
    margin-left: 6px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(122, 179, 161, 0.1);
}

/* Family Members */
.family-group {
    background: #f8fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.family-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.family-row:last-child { margin-bottom: 0; }

.family-row input { flex: 2; }
.family-row select { flex: 1; }

/* Radio / Sessions */
.radio-group { display: flex; gap: 30px; }
.radio-item { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.session-options { display: flex; gap: 15px; }
.session-card { flex: 1; text-align: center; }
.session-card input { position: absolute; opacity: 0; pointer-events: none; }
.session-card label {
    display: block;
    padding: 20px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.session-card input:checked + label {
    border-color: var(--primary-color);
    background-color: #f0f9f6;
}

.session-title { font-weight: bold; display: block; margin-bottom: 4px; }
.session-time { font-size: 0.8rem; color: var(--text-muted); display: block; }

.spots-badge {
    margin-top: 10px;
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #edf2f7;
    border-radius: 10px;
}

/* Footer & Buttons */
.warning-box {
    background: #fff5f5;
    color: var(--alert-color);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 25px;
    border: 1px solid #fed7d7;
}

.agreement-box {
    margin-top: 30px;
    font-size: 0.9rem;
    padding: 15px;
    background: #f8faf9;
    border-radius: 10px;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 30px;
    box-shadow: 0 4px 14px rgba(122, 179, 161, 0.4);
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Success & Confirmation */
#confirmation-view, #success-message {
    padding: 50px 60px;
}

#confirmation-view h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #f8fafb;
    border-radius: 12px;
    overflow: hidden;
}

.confirm-table th, .confirm-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.confirm-table th {
    width: 140px;
    background: #f1f5f4;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.confirm-table td {
    font-size: 0.95rem;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 15px;
}

.back-btn {
    flex: 1;
    padding: 18px;
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.back-btn:hover {
    background: #e2e8f0;
}

.confirm-submit-btn {
    flex: 2;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 14px rgba(122, 179, 161, 0.4);
}

.confirm-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

#success-message {
    text-align: center;
}

#success-message h2 { color: var(--primary-color); margin-bottom: 20px; }

.ticket-id {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 25px;
    border: 2px dashed var(--primary-color);
    background: #f0f9f6;
    border-radius: 10px;
    font-weight: bold;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
}
.overlay.active { display: flex; }
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .bio-section, .info-section, .event-details, .form-body, #confirmation-view, #success-message { padding: 40px 25px; }
    .bio-features, .session-options, .family-row, .bring-container, .confirm-actions { grid-template-columns: 1fr; flex-direction: column; }
    .bring-image-box { width: 100%; margin-top: 20px; }
    .confirm-table th { width: 100px; font-size: 0.75rem; }
}

.red { color: var(--alert-color); }