﻿/* ====================================================================================================
* Core Styles: Flexible and Responsive Container Setup
* ====================================================================================================
*/

/* Container Wrapper (The main container that holds the form and the image) */
.wizard-container {
    display: flex;
    flex-direction: row-reverse !important; /* Set to row. We will use 'order' to control placement */
    width: 100%; /* Take 100% of the iframe width */
    max-width: 1200px; /* Optional: Prevent excessive stretching on huge monitors */
    margin: 0 auto; /* Center the container inside the iframe */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Image Section - Set its order to appear first (left) */
.image-section {
    height: 100%;
    max-width: 40%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
    order: 1; /* Assign Order 1: This makes it appear on the left */
}

    .image-section img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Form Section - Set its order to appear second (right) */
.form-section {
    flex-grow: 1;
    max-width: 60%;
    padding: 0;
    order: 2; /* Assign Order 2: This makes it appear on the right */
}

/* Loan Options Container (The actual form content area) */
.loan-options {
    font-family: Arial, sans-serif;
    width: 95%;
    max-width: 500px;
    margin: 10px auto;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

/* Rest of the original CSS elements (buttons, links, etc.) */

.description {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.option-button {
    width: 100%;
    padding: 15px 20px;
    background-color: #ffffff;
    margin-bottom: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    text-align: right;
    transition: all 0.2s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

    .option-button:hover {
        transform: none;
        background-color: #f7f7f7;
        border-color: #aaa;
        box-shadow: none;
    }

.button-content-wrapper {
    display: flex;
    flex-direction: column;
    text-align: right;
    width: 100%;
    margin-bottom: 10px;
}

    .button-content-wrapper .title-text {
        font-size: 18px;
        font-weight: bold;
        color: #222;
        margin: 0;
    }

    .button-content-wrapper .subtitle-text {
        font-size: 14px !important;
        font-weight: 600;
        color: #666;
        margin: 5px 0 0 0;
    }

.action-indicator {
    display: none !important;
}

.recommended-badge {
    display: none !important;
}

.digital-id-highlight {
    padding: 20px;
    background-color: #e3f2fd;
    border: 3px solid #4a90e2;
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease-in-out;
}

    .digital-id-highlight:hover,
    .digital-id-highlight:focus {
        background-color: #c0deff;
        border-color: #007bff;
        box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
        transform: none;
        outline: none;
    }

    .digital-id-highlight .title-text {
        color: #003b71;
    }

.download-links-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px dashed #c0deff;
    width: 100%;
    flex-wrap: wrap;
}

.download-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #90caf9;
    padding: 8px 12px;
    border-radius: 7px;
    background-color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

    .download-link-item:hover {
        background-color: #f0f0f0;
    }

/* ====================================================================================================
* Media Queries - Breakpoint for Mid-size Screens (Hide Image)
* ====================================================================================================
*/

/* Hide image section and let form take full width on screens < 1000px */
@media (max-width: 1000px) {
    .image-section {
        display: none; /* Hide the image and its container */
    }

    .form-section {
        max-width: 100%; /* Form section takes the full 100% width */
        order: 1; /* Ensure form remains the primary (only visible) element */
    }

    .loan-options {
        padding: 20px; /* Add some padding back for better appearance */
        max-width: 100%;
    }
}


/* ====================================================================================================
* Media Queries - Breakpoint for Mobile View (Smallest)
* ====================================================================================================
*/

/* Fine-tuning for very small screens/mobile view (already full width, just adjust padding/fonts) */
@media (max-width: 768px) {
    .loan-options {
        padding: 15px;
        margin: 10px auto;
        max-width: 100%;
    }

    .option-button {
        padding: 15px;
        font-size: 20px;
    }

    .button-content-wrapper .title-text {
        font-size: 18px;
    }

    .button-content-wrapper .subtitle-text {
        font-size: 12px !important;
    }
}
