/* ===== FORM MODULE SYSTEM ===== */

/* Form Module Container */
.form-module {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* Radio and Checkbox Custom Styling */
.radio-custom-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.radio-item:hover {
    color: var(--color-primary);
}

/* Form Item Dividers */
.form-divider {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.payment-display {
    background: rgba(25, 135, 84, 0.05);
    border: 1px dashed rgba(25, 135, 84, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-module:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.form-module h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--green-light);
    padding-bottom: 12px;
    display: inline-block;
}

/* Custom Form Groups */
.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-group-custom label span.required {
    color: #e74c3c;
    margin-left: 2px;
}

/* Custom Inputs */
.input-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.25s ease;
}

.input-custom:focus {
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 4px var(--green-light);
    outline: none;
}

.input-custom::placeholder {
    color: #a0aec0;
}

/* Radio & Checkbox Styling */
.checkbox-custom-group,
.radio-custom-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
}

.radio-item input[type="radio"] {
    accent-color: var(--green);
    width: 18px;
    height: 18px;
}

/* Section Dividers in Forms */
.form-divider {
    height: 1px;
    background: linear-gradient(to right, var(--green-light), transparent);
    margin: 30px 0;
    border: none;
}

/* Error Messages */
.error-text {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    display: block;
    height: 16px;
}

/* Page Alignment Container */
.page-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.sidebar-wrapper {
    position: sticky;
    top: 100px;
}

/* Button overrides */
.btn-primary-custom {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(43, 197, 7, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-custom:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(43, 197, 7, 0.4);
    color: #fff;
}

.btn-primary-custom:active {
    transform: translateY(-1px);
}

/* Subscription Selection Cards */
.subscription-card {
    background: #f8fafc;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
    padding: 15px 18px;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    margin: 0;
}

.subscription-card input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--green);
    flex-shrink: 0;
}

.subscription-card .plan-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    text-align: left;
}

.subscription-card .plan-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
}

.subscription-card .plan-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--green-dark);
}

/* Hover state */
.subscription-card:hover {
    border-color: var(--green);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Checked state using modern CSS :has() */
.subscription-card:has(input[type="radio"]:checked) {
    border-color: var(--green);
    background: rgba(43, 197, 7, 0.05);
    box-shadow: 0 4px 15px rgba(43, 197, 7, 0.05);
}