/* Layout Components for Illuminating */

/* ==========================================================================
   PAGE LAYOUTS
   ========================================================================== */

/* Main page wrapper */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 20px 40px;
    min-height: 100vh;
    background: #FFFFFF;
}

/* Content container */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;
    width: 100%;
    max-width: 1013px;
}

/* Two-column layout */
.two-column-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 28px;
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   FORM LAYOUTS
   ========================================================================== */

/* Form main container */
.form-main-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 21px 29px;
    gap: 32px;
    width: 666px;
    border: 1px solid #DADADA;
    border-radius: 16px;
}

/* Form container with minimum height */
.form-container-tall {
    min-height: 560px;
}

/* Form field container */
.form-field-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: 624px;
    margin-bottom: 32px;
}

/* Form section with background */
.form-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
    width: 624px;
    margin-bottom: 32px;
    background: #FAFBFB;
    border: 1px solid #DADADA;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Primary reference section */
.form-section-primary {
    border-left: 4px solid #D5FF2E;
}

/* Secondary reference section */
.form-section-secondary {
    border-left: 4px solid #DADADA;
}

/* Full width form */
.form-full-width {
    width: 100%;
}

/* ==========================================================================
   BUTTON LAYOUTS
   ========================================================================== */

/* Button container */
.button-container-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 24px;
    width: 624px;
    height: 97px;
}

/* Button with spacing */
.button-with-gap {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

/* Section header with button */
.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

/* ==========================================================================
   SIDEBAR LAYOUTS
   ========================================================================== */

/* Sidebar container */
.sidebar-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 28px;
    width: 319px;
}

/* Sidebar card */
.sidebar-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 319px;
    background: #FAFBFB;
    border: 1px solid #DADADA;
    border-radius: 16px;
}

/* Sidebar card header */
.sidebar-card-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 16px 15px;
    gap: 5px;
    width: 319px;
    height: 51px;
    border-bottom: 1px solid #DADADA;
}

/* Sidebar card content */
.sidebar-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
    width: 319px;
}

/* Sidebar card inner content */
.sidebar-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: 287px;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */

@media (max-width: 1100px) {
    .two-column-layout {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .form-main-container {
        width: 100% !important;
        max-width: 666px !important;
    }
    
    .form-field-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .button-container-centered {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Override any inline styles with fixed widths */
    div[style*="width: 624px"],
    label[style*="width: 624px"],
    button[style*="width: 624px"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .sidebar-container {
        width: 100% !important;
        max-width: 666px !important;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 100px 16px 32px !important;
    }
    
    .form-main-container {
        width: calc(100% - 32px) !important;
        max-width: 666px !important;
        margin: 0 16px !important;
    }
    
    .form-field-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .button-container-centered {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Override any inline styles with fixed widths */
    div[style*="width: 624px"],
    label[style*="width: 624px"],
    button[style*="width: 624px"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .sidebar-card {
        width: 100% !important;
    }
    
    .sidebar-card-header {
        width: 100% !important;
    }
    
    .sidebar-card-content {
        width: 100% !important;
    }
    
    .sidebar-card-inner {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 80px 12px 24px !important;
    }
    
    .form-main-container {
        width: calc(100% - 24px) !important;
        margin: 0 12px !important;
        padding: 16px !important;
    }
    
    .form-field-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .form-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .button-container-centered {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Override any inline styles with fixed widths */
    div[style*="width: 624px"],
    label[style*="width: 624px"],
    button[style*="width: 624px"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 360px) {
    .page-wrapper {
        padding: 60px 8px 20px !important;
    }
    
    .form-main-container {
        width: calc(100% - 16px) !important;
        margin: 0 8px !important;
        padding: 12px !important;
    }
}