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

.vbsc-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.vbsc-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vbsc-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.vbsc-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.vbsc-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.vbsc-content {
    padding: 30px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.section-category {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #4CAF50;
    transition: all 0.3s ease;
}

.section-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-category h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

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

.input-row label {
    flex: 1 1 100%;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

.input-wrapper {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 150px;
}

.input-wrapper.with-calculation {
    flex: 1 1 60%;
}

.dollar-sign {
    position: absolute;
    left: 12px;
    font-weight: bold;
    color: #4CAF50;
    font-size: 1em;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    font-size: 14px;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.calculation-display {
    flex: 1 1 35%;
    padding: 10px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.95em;
    text-align: center;
    border: 2px solid rgba(76, 175, 80, 0.2);
    margin-left: 15px;
    min-width: 100px;
}

.people-days {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border-left-color: #2196F3;
}

.per-child {
    background: linear-gradient(135deg, #fff3e0 0%, #e8f5e8 100%);
    border-left-color: #FF9800;
}

.volunteer-costs {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8f5e8 100%);
    border-left-color: #9C27B0;
}

.fixed-costs {
    background: linear-gradient(135deg, #ffebee 0%, #e8f5e8 100%);
    border-left-color: #F44336;
}

.summary-section {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.summary-item h4 {
    font-size: 0.9em;
    opacity: 1;
    margin-bottom: 5px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.summary-item .amount {
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff;
}

.total-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.total-display h3 {
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
}

.total-display p {
    color: #ffffff;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.controls {
    text-align: center;
    margin-top: 30px;
}

.btn {
    background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 112, 67, 0.4);
}

.btn.secondary {
    background: linear-gradient(135deg, #607d8b 0%, #546e7a 100%);
    box-shadow: 0 4px 15px rgba(96, 125, 139, 0.3);
}

.btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(96, 125, 139, 0.4);
}

@media (max-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .vbsc-container {
        margin: 10px;
    }
    
    .vbsc-content {
        padding: 20px;
    }
    
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-row label {
        margin-bottom: 8px;
    }
    
    .input-wrapper {
        margin-bottom: 10px;
        width: 100%;
    }

    .input-wrapper.with-calculation {
        margin-bottom: 5px;
    }

    .calculation-display {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
    }
}

/* Minimal Kids VBS Registration card */
.vbsc-kids-card{ margin:24px 0 8px; padding:16px; border:1px solid rgba(0,0,0,0.08);
  border-radius:12px; background:#f7fbff; }
.vbsc-kids-title{ margin:0 0 6px; font-size:1.15em; }
.vbsc-kids-text{ margin:0 0 10px; color:#444; }
.vbsc-kids-actions{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.vbsc-kids-btn{ display:inline-block; text-decoration:none; padding:10px 16px; border-radius:8px;
  background:#2b7a2f; color:#fff; font-weight:600; }
.vbsc-kids-btn:hover{ filter:brightness(1.05); }
.vbsc-kids-link{ text-decoration:none; color:#2b7a2f; }

/* Controls layout fix: keep buttons from breaking/overlapping */
.controls{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:16px;
}
.controls .btn,
.controls a.btn{
  display:inline-block;
  white-space:nowrap;
  text-decoration:none;
  vertical-align:middle;
}
.controls .btn:visited,
.controls a.btn:visited{
  color:#fff;
}

/* ================= Email Gate Styling ================= */
/* The email gate appears when email capture is enabled. */
.email-gate-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.email-gate-content h3 {
    font-size: 1.5em;
    margin-bottom: 12px;
    color: white;
}
.email-gate-description {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 15px;
}
.email-required-note {
    font-size: 0.8em;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.8;
}
#email-gate-form {
    max-width: 500px;
    margin: 0 auto;
}
.email-form-row {
    margin-bottom: 15px;
    text-align: left;
}
.email-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
}
.email-form-row input[type="text"], .email-form-row input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 6px;
    font-size: 1em;
    background: #ffffff;
    color: #333;
    box-shadow: none;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Change border on focus for email gate inputs */
.email-form-row input[type="text"]:focus,
.email-form-row input[type="email"]:focus {
    border-color: #ffffff;
}
.btn-show-results {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}
.btn-show-results:hover {
    background: #45a049;
}
.email-message {
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: bold;
}
.email-message.success {
    color: #c8e6c9;
}
.email-message.error {
    color: #f8d7da;
}
