/* ========================================================= */
/* Power Pages Survey Theme Custom CSS                       */
/* ========================================================= */

/* * IMPORTANT: You may need to replace the placeholder selectors 
 * like '#mainFormContainer' or '.form-control' with the actual
 * IDs or classes used in your specific Power Pages forms/web templates.
 * Use F12 Developer Tools to inspect the elements on your page.
 */

/* 1. Overall Form/Container Styling */
/* Target the main container that holds your form or web template */
#mainFormContainer, .webtemplate {
    max-width: 800px; /* Constrain width for better readability */
    margin: 40px auto; /* Center the form on the page */
    padding: 20px;
    background-color: #f8f9fa; /* Light background for the form area */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle lift effect */
}

/* 2. Question/Field Group Styling (Simulating a "Card" per question) */
.form-group {
    /* Assuming .form-group wraps a label and input/control */
    margin-bottom: 25px; /* More space between questions */
    padding: 15px;
    background-color: #ffffff; /* White background for the question area */
    border-left: 5px solid #0078d4; /* Accent color on the side */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

legend.section-title,
.tab-title {
    padding-left: 28px;
    padding-right: 28px;
}

/* 3. Label/Question Text Styling */
/* label {
    display: block;
    font-weight: 600; /* Bolder question text * /
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 8px;
}  
* /

legend {

}

/* 4. Input/Control Styling (Text fields, textareas, select dropdowns) */
/* .form-control, 
input[type="text"], 
input[type="email"], 
input[type="number"],
textarea, 
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box; /* Ensures padding doesn't affect total width 
} */

/* Focus state for inputs - clear indicator of active field */
.form-control:focus, 
input:focus, 
textarea:focus, 
select:focus {
   box-shadow: 0 0 0 4px #009adb;
    outline: 4px solid transparent;
    transition: box-shadow .1s ease-in-out
}

/* 5. Radio Buttons and Checkboxes (Make them more visible) */
/* This styling is very dependent on your Power Pages/Bootstrap version. */
/* You might need to adjust the selectors based on actual HTML. */
.radio, .checkbox {
    margin-top: 5px;
    margin-bottom: 5px;
}
.radio label, .checkbox label {
    font-weight: normal;
    font-size: 1em;
    color: #555;
    cursor: pointer;
    padding-left: 25px; /* Space for a custom radio/checkbox */
    position: relative;
}

/* 6. Submission Button Styling */
/* Primary action button */
/* .btn-primary, input[type="submit"], button[type="submit"] {
    background-color: #0078d4; /* Microsoft Blue or your brand color 
    border-color: #0078d4;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-left: 28px;
} */

.btn-primary:hover, input[type="submit"]:hover, button[type="submit"]:hover {
    background-color: #005a9e; /* Darker blue on hover */
    border-color: #005a9e;
}

/* 7. Required Field Indicator (e.g., an asterisk) */
.required {
    color: #dc3545; /* Red for required fields */
    margin-left: 5px;
    font-weight: bold;
}

/* ========================================================= */
/* FIX: Move 'PREVIOUS' button to the bottom right of the form */
/* ========================================================= */

/* 1. Target the 'Previous' button's specific container to reset positioning */
.form-action-container-left {
    /* These two properties are the most likely cause of the button being in the wrong spot */
    float: none !important;
    position: static !important;
}

/* 2. Target the main button container (The div that holds ALL buttons) */
/* This is often the parent of form-action-container-left and form-action-container-right */
.form-action-container {
    /* Use Flexbox for robust, modern alignment */
    display: flex !important;
    /* Pushes 'Previous' to the left and 'Submit' to the right */
    justify-content: space-between !important;
    
    /* Ensure the button block is at the bottom of the form section */
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd; 
    width: 100%;
}

/* 3. Add consistent spacing between the Previous and Next/Submit buttons */
/* This ensures the button itself is targeted within the flex container */
.form-action-container-left .previous {
    /* Add a margin to the right if you want a gap from the form fields */
    margin-right: 15px !important;
    /* Optional: Ensure it aligns with the submit button */
    align-self: center; 
}

/* ========================================================= */
/* End of Custom CSS                                         */
/* ========================================================= */