
/* --- FORM LAYOUT --- */
.form-page-container {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    align-items: flex-start;
}

.form-section {
    flex: 1;
    background: var(--white);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-hard);
}

.summary-section {
    width: 380px;
    position: sticky;
    top: 110px; /* Stick below header */
    background: var(--white);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-hard);
    z-index: 900;
}

/* --- TYPOGRAPHY --- */
.form-section h2 { 
    font-size: 2.2rem; 
    margin-bottom: 0.5rem; 
    color: var(--dark);
}
.text-muted { 
    color: #64748b; 
    font-size: 1.1rem; 
    margin-bottom: 2rem; 
    display: block;
}
.form-group-custom {
    margin-bottom: 2.5rem;
}
.form-group-custom h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

/* --- PACKAGE CARDS --- */
.filing-option {
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    position: relative;
}

.filing-option:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 #000;
}

.filing-option.selected {
    background-color: #B9E9FC; /* Pastel Blue match */
    box-shadow: 5px 5px 0 #000;
    transform: translate(-3px, -3px);
}
/* Add checkmark icon for selected */
.filing-option.selected::after {
    content: '✔';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
}

.filing-option h5 { margin: 0 0 5px 0; font-size: 1.3rem; }
.filing-option p { margin: 0; font-size: 1rem; color: #555; }

/* --- INPUTS --- */
.mb-3 { margin-bottom: 1.5rem; }
.row { display: flex; gap: 20px; }
.col-md-6 { flex: 1; }

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: var(--border-width) solid var(--border-color);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: 0.2s;
    outline: none;
    background: #fdfdfd;
}
.form-control:focus {
    box-shadow: 4px 4px 0 #000;
    background-color: #fff;
    transform: translate(-2px, -2px);
}
.form-text { font-size: 0.9rem; color: #666; margin-top: 5px; }

/* Validation Styling */
.invalid-feedback {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    font-weight: 800;
}
.was-validated .form-control:invalid {
    border-color: var(--danger);
    background-color: #fff1f2;
}
.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* --- CHECKBOXES & RADIOS --- */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: 0.2s;
}
.form-check:hover {
    background-color: #f1f5f9;
}
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--accent);
}
.form-check-label {
    cursor: pointer;
    font-weight: 600;
}

/* --- PAYMENT METHOD BLOCK --- */
.payment-options {
    background: #f8fafc;
    border: var(--border-width) solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.05);
}

/* --- SUMMARY SIDEBAR --- */
.summary-section h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: 12px;
    font-weight: 600;
}
.summary-item.included span:last-child {
    color: var(--secondary);
    font-weight: 800;
}
.total-section {
    margin-top: 20px;
    border-top: 3px solid #000;
    padding-top: 15px;
    font-weight: 900;
    font-size: 1.4rem;
}

/* --- SUBMIT BUTTON --- */
.submit-btn {
    width: 100%;
    padding: 18px;
    margin-top: 25px;
    background: var(--secondary); /* Green */
    color: white;
    border: var(--border-width) solid #000;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 5px 5px 0 #000;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.submit-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 #000;
    background-color: #5ab565;
}
.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .form-page-container {
        flex-direction: column;
    }
    .summary-section {
        width: 100%;
        position: static;
        order: 1; /* Keep at bottom on mobile */
        margin-top: 20px;
    }
}
@media (max-width: 600px) {
    .row { flex-direction: column; gap: 0; }
    .form-section { padding: 20px; }
    .filing-option h5 { font-size: 1.1rem; }
}
