/* ================= GLOBAL WRAPPER & CONTAINER ================= */
.content-wrapper {
    background: linear-gradient(to top, #e8f5e9 60%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 950px;
    width: 95%;
    margin: 20px auto 60px;
}

.form-container {
    background: #ffffff;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 77, 0, 0.08);
    border: 1px solid rgba(0, 77, 0, 0.06);
    border-top: 6px solid #004d00; /* Distinct top accent bar */
}

/* Header Context */
.form-header {
    border-bottom: 2px dashed rgba(0, 77, 0, 0.15);
    margin-bottom: 35px;
    padding-bottom: 20px;
}

.form-header h2 {
    color: #004d00;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.form-header .subtitle {
    text-align: left;
    margin-top: 10px;
    display: block;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

/* ================= SECTION HEADINGS ================= */
#individualFields h2, 
#corporateFields h2 {
    color: #004d00;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 10px 0 25px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #F0AA18; /* Yellow brand highlight line */
    display: inline-block;
}

/* ================= REQUIREMENTS LISTS & TOOLTIPS ================= */
.requirements-list {
    margin-bottom: 25px;
    padding-left: 20px;
}

.requirements-list li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #353b48;
    line-height: 1.4;
}

.tooltip {
    position: relative;
    display: inline-block;
    background: #004d00;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    cursor: help;
    margin-left: 5px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ================= FORM GRID & STRUCTURAL ELEMENTS ================= */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 5px;
}

.form-row-full {
    display: block;
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.required-asterisk {
    color: #d9534f;
    margin-left: 4px;
    font-weight: bold;
}

/* ================= INPUT FIELDS STYLING ================= */
.form-group input[type="text"], 
.form-group input[type="date"], 
.form-group input[type="tel"], 
.form-group input[type="email"], 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dcdde1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    color: #2f3640;
    background-color: #fcfcfc;
    transition: all 0.25s ease-in-out;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #004d00;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 77, 0, 0.1);
}

/* Radio Button Options Styling */
.radio-group {
    display: flex;
    gap: 30px;
    padding: 10px 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #353b48;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #004d00;
    cursor: pointer;
}

/* Section Boundary Dividers */
.section-divider {
    margin: 25px 0;
    border-top: 1px dashed rgba(0, 77, 0, 0.12);
    padding-top: 20px;
}

/* ================= COMPONENT INTERACTIVE ACTIONS ================= */

/* Exact duplication match of .btn-open-account base layout */
.btn-download {
    background: linear-gradient(to right, #2e7d32, #4caf50, #81c784);
    color: WHITE;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 77, 0, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 51, 0, 0.8); 
    border: none;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 15px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 77, 0, 0.3);
}

.btn-submit-container {
    text-align: center;
    margin-top: 35px;
}

.btn-submit {
    background-color: #004d00;
    color: #ffffff;
    padding: 16px 60px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 77, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #006600;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 77, 0, 0.25);
}

.btn-submit:disabled {
    background-color: #a4b0be !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Dynamic Hidden Containers Animate States */
#individualFields, #corporateFields {
    display: none;
    animation: slideUpFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= MODAL STYLES & ANIMATIONS ================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 1000; 
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Active states managed via JS class toggling */
.modal.show {
    display: block !important;
    opacity: 1;
}

.modal.show .modal-content {
    animation: slideDown 0.4s ease-out forwards;
}

.modal-content { 
    background: #fff;
    margin: -20% auto; 
    padding: 25px; 
    width: 450px; 
    max-width: 90%;
    border-radius: 8px; 
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-top: 0;
    color: #004d00;
    font-size: 20px;
}

.modal-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.modal-content label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-top: 15px;
    font-weight: 600;
}

.modal-content label input[type="checkbox"] {
    margin-top: 3px;
}

/* X Close Button Style */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}
.close-btn:hover { color: #f00; }

.modal-actions { 
    margin-top: 25px; 
    text-align: right; 
}

/* ================= MODAL DIALOG TOGGLE BUTTONS ================= */

/* Exact line-by-line copy of .btn-open-account specifications */
.btn-enabled { 
    background: linear-gradient(to right, #2e7d32, #4caf50, #81c784);
    color: WHITE;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 77, 0, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 51, 0, 0.8); 
    pointer-events: auto; 
    opacity: 1; 
    display: inline-block;
}

.btn-enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 77, 0, 0.3);
}

/* Exact line-by-line copy of .btn-open-account layout properties with flat gray styles applied */
.btn-disabled { 
    background: linear-gradient(to right, #757575, #9e9e9e, #bdbdbd);
    color: WHITE;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); 
    pointer-events: none; 
    opacity: 0.5; 
    display: inline-block;
    cursor: not-allowed;
}

/* ================= MOBILE OPTIMIZATION OVERRIDES ================= */
@media (max-width: 768px) {
    .form-container {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .radio-group {
        padding-bottom: 5px;
    }

    .modal-content {
        margin: 20% auto;
        width: 90%;
        padding: 20px;
    }
}