/* ==============================
   Form Page Header & Layout
============================== */
.form-header {
    padding: 120px 0 60px;
    background: url('../Design/super.png') center/cover no-repeat, linear-gradient(135deg, var(--primary-green), #2E8A3C);
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Dark overlay for text readability */
}

.form-header .container {
    position: relative;
    z-index: 2;
}

.form-section {
    padding: -40px 0 6rem;
    margin-top: -60px; /* Overlap header slightly */
    position: relative;
    z-index: 5;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
}

/* ==============================
   Form Elements
============================== */
.form-group-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(55, 162, 72, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: #e53e3e; /* Red for required */
}

.form-control, .form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(55, 162, 72, 0.15);
}

/* ==============================
   Radio Cards (Ticket Category)
============================== */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: var(--white);
    transition: var(--transition-smooth);
    height: 100%;
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--primary-green);
    background: rgba(55, 162, 72, 0.05);
    box-shadow: 0 4px 15px rgba(55, 162, 72, 0.1);
}

.rc-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.radio-card input[type="radio"]:checked + .radio-content .rc-title {
    color: var(--primary-green);
}

.rc-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==============================
   Checkbox Terms
============================== */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.checkbox-container input {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.terms-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

/* Form Divider */
.form-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 2rem 0;
}

/* Dynamic Section Transition */
.form-transition {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.form-transition.active {
    max-height: 500px; /* Arbitrary large height */
    opacity: 1;
}

/* ==============================
   Responsive Queries
============================== */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .form-grid, .radio-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-header {
        padding: 100px 0 60px;
    }
}
