﻿body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif; /* Consistent font stack */
    background-color: #f8f9fa; /* Light background for the whole page if needed */
}


/* ******************************************* */
#divMain {
    display:block;
    padding: 20px 0; /* Padding top/bottom, no side padding here */
    max-width: 1100px; /* Consistent max-width like other sections */
    margin: 20px auto; /* Centering */
    background-color: #F2F2F2; /* Light grey background for the main content area */
    line-height:1.6; /* Adjusted default line height */
    text-align:center;
    border:0px solid red; /* Keep for debugging if needed */
}

/* 상담 신청 Banner Styles */
.clsMainTitle {
    display: inline-block; /* Keep as inline-block */
    /* background-color: #27ae60; */ /* Removed background */
    /* color: #ffffff; */ /* Removed text color */
    color: #000000; /* Set text color to black */
    /* padding: 5px 15px; */ /* Removed padding */
    font-size: 1.8em; /* Adjust font size */
    font-weight: bold;
    /* border-radius: 5px; */ /* Removed border-radius */
    text-align: center; /* Center text within the div */
    margin-top: 30px; /* Space above */
    margin-bottom: 15px; /* Space below */
    position: relative; /* Needed for pseudo-element positioning if used */
    background-color: #00E07B;
}

.clsMainTopText {
    text-align: center;
    font-size: 1.1em; /* Adjust font size if needed */
    line-height: 1.7; /* Slightly increased line-height for readability */
    color: #555555; 
    margin-left: auto; /* Keep for centering */
    margin-right: auto; /* Keep for centering */
    padding: 0 15px; /* Padding on sides */
}

.text-highlight {
    color: #27ae60; /* Green highlight color */
    font-weight: 600; /* Slightly bolder */
}

/* ******************************************* */
#divInput {
    width:100%; 
    max-width: 850px; /* Increased max-width for wider form */
    margin: 20px auto 0 auto; /* Added top margin, centered horizontally */
    border:0px solid red;
    line-height:1.8; 
    padding: 30px 25px; /* Padding inside the white card */
    text-align: left; 
    background-color: #ffffff; /* White background for the form card */
    border-radius: 15px; /* Rounded corners for the form card */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Shadow for the form card */
}

/* Form Group Styling */
.form-group {
    display: flex;
    align-items: flex-start; /* Align items to the top for multi-line controls */
    margin-bottom: 18px; /* Spacing between groups */
    padding: 0 10px; /* Add some horizontal padding */
}

.form-label-container {
    width: 160px; /* Increased width to prevent wrapping */
    padding-right: 15px;
    text-align: left;
    font-weight: 500;
    color: #333;
    flex-shrink: 0; /* Prevent label container from shrinking */
    margin-top: 10px; /* Align baseline with controls */
}

.form-label-text {
    display: inline-block; /* Or block if preferred */
}

.required-indicator {
    color: #27ae60;
    font-weight: bold;
    margin-left: 4px;
    font-size: 0.85em; /* Reduced font size */
}

.form-control-container {
    flex-grow: 1; /* Allow control container to take remaining space */
    display: flex;
    flex-direction: column; /* Stack controls within container if needed */
}

/* Style adjustment for specific groups if needed */
.form-group-textarea .form-label-container {
    /* margin-top: 5px; */ /* Adjust alignment for textarea */
}

/* Verification Controls Layout */
.verification-controls {
    display: flex;
    flex-direction: row; /* Align items horizontally */
    align-items: center; /* Center items vertically */
    gap: 10px; /* Space between input and button */
}

/* Adjust indicator alignment within verification controls */
.verification-controls .required-indicator {
    margin-top: 5px; /* Push down slightly */
    margin-right: 5px; /* Add some space before the button */
    flex-shrink: 0; /* Prevent shrinking */
}

.verification-controls .form-control {
    flex-grow: 1; /* Allow input to take space */
}

.verification-controls .btn {
    flex-shrink: 0; /* Prevent button from shrinking */
    padding: 8px 12px; /* Use standard secondary padding */
    font-size: 0.95em; /* Use standard secondary font-size */
    height: auto; 
}

.verification-status-group .form-label-container {
    /* Hide empty label */
    /* width: 0; padding: 0; */ 
}

.verification-status-label {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    color: #27ae60; /* Green for success (adjust if needed) */
    margin-bottom: 5px;
}

/* Privacy Group Styling */
.privacy-group .form-label-container {
    /* Optional: Adjust alignment if needed */
}

.privacy-check-line {
    margin-bottom: 10px;
    display: flex; /* Use flex for alignment */
    align-items: flex-start; /* Vertically align items */
}

/* Adjust indicator alignment within privacy check line */
.privacy-check-line .required-indicator {
   /* vertical-align: middle; */ /* May not work well with flex, use margin/padding */
   margin-left: 5px; /* Ensure space after checkbox text */
   /* No top margin needed if align-items: center works */
}

.privacy-check-line .form-checkbox {
    margin-right: 5px;
}

.privacy-links {
    display: flex;
    justify-content: flex-start; /* Space out links */        
    margin-bottom: 10px;
}

span.privacy-policy-link {
    font-size: 0.9em;
    color: #555;    
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
button.btn-privacy-toggle {
    font-size: 0.9em;
    color: #555;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

button.btn-privacy-toggle:hover {
    color: #000;
}

.privacy-details {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    font-size: 0.85em;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
}
.privacy-details p {
    margin-bottom: 8px;
}

/* General Form Control Styling */
.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    /* background-color: #f8f9fa; */ /* Removed - letting BackColor attribute handle it */
    background-clip: padding-box;
    border: 1px solid #e0e0e0; /* Keep border for consistency */
    border-radius: 6px; 
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    box-sizing: border-box; 
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

select.form-control {
    height: auto;
    padding: 8px 30px 8px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23495057" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    text-align-last: left;
}

textarea.form-control {
    min-height: 100px;
    height: auto;
}

/* Styles for the RadioButtonList if it were used */
/* Example: 
.radio-group label {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}
.radio-group input[type="radio"] {
    margin-right: 5px;
}
*/

/* Remove old specific styles overridden by .form-control */
.clsInputTextBox,
.clsInputTextBox2,
.clsInputDropDownList {
    /* Remove properties now handled by .form-control */
    /* background-color, border, border-radius, padding, font-size, color, width, etc. */
    /* Keep specific things if needed, e.g., text-align */
    text-align: center; /* Keep center align for dropdowns/some inputs if desired */
    /* Reset width/padding/border etc. */
    width: auto;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    font-size: inherit; /* Inherit from .form-control */
    color: inherit;
    font-weight: inherit;
}

/* Keep specific alignment for certain old classes if needed */
.clsInputTextBox2 {
     text-align: center; /* Example */
}
textarea.clsInputTextBox2 { /* Target the textarea specifically */
    text-align: left;
}
select.clsInputDropDownList {
    text-align: center;
}

/* Submit Button Area */
.form-submit-area {
    text-align: center;
    margin-top: 30px;
    padding: 0 10px;
}

/* General Button Styles (apply .btn class in HTML) */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .6rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 8px; /* Slightly less rounded for a more modern feel, matching inputs */
    transition: all .15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #27ae60; /* Primary green */
    border-color: #27ae60;
    min-width: 200px; 
    font-weight: 600;
    padding: 12px 20px; /* Adjusted padding */
    font-size: 1.1em;
}

.btn-primary:hover {
    background-color: #229954;
    border-color: #229954;
}

.btn-secondary {
    color: #333;
    background-color: #f8f9fa; /* Match form control background */
    border-color: #e0e0e0; /* Match form control border */
    padding: 8px 12px; /* Slightly smaller padding */
    font-size: 0.95em;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

/* Ensure submit button uses primary style */
.btn-submit {
    /* Already inherits .btn and .btn-primary via class attribute */
    width: 100%; /* Make submit button full width of its container */
    max-width: 450px; /* Increased max-width */
}

/* Ensure verification buttons use secondary style */
.verification-controls .btn-secondary {
     /* Already inherits .btn and .btn-secondary via class attribute */
     /* padding and font-size adjustments might already be in .verification-controls .btn */
}

/* Remove specific overrides if general styles are sufficient */
/* E.g., remove !important from .verification-controls .btn if possible */
.verification-controls .btn {
    flex-shrink: 0; 
    padding: 8px 12px; /* Use standard secondary padding */
    font-size: 0.95em; /* Use standard secondary font-size */
    height: auto; 
}

/* Override old button styles */
#btnSave {
    /* Reset styles if using .btn now */
    width: 300px;
    height: auto;
    box-shadow: none;
    letter-spacing: normal;
    margin-top: 0;
    margin-bottom: 0;
}
#btnGetVerificationNumber, 
#btnInputVerificationNumber,
#btnTest {
    /* Reset inline styles or old classes */
     position: static !important; 
     top: auto !important;
     left: auto !important;
     margin-bottom: 0 !important;
     /* font-size, color, border */
}


/* Responsive Form Groups */
@media screen and (max-width: 768px) { 
    /* Make #divInput responsive within this range */
    #divInput {
        width: 95%;
        max-width: none;
        padding-left: 15px; /* Adjust padding for smaller screens */
        padding-right: 15px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        padding: 0 5px;
    }
    .form-label-container {
        width: auto; /* Full width */
        text-align: left;
        padding-right: 0;
        margin-bottom: 8px; /* Space below label */
        margin-top: 0; /* Reset top margin */
    }
    .verification-controls {
        flex-wrap: wrap; /* Allow button to wrap below input */
    }
    .verification-controls .form-control {
        min-width: 150px; /* Ensure input has some min width */
    }
    .privacy-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .form-submit-area {
        margin-top: 20px;
    }
}

/* Smaller Mobile Adjustments */
@media screen and (max-width: 480px) {
    #divMain {
        padding: 20px 5px; /* Reduced side padding */
    }
    /* Adjust #divInput for mobile */
    #divInput {
        width: 95%; /* Use percentage width */
        max-width: none; /* Remove fixed max-width */
        padding: 20px 15px; /* Slightly reduce internal padding */
        margin: 15px auto 0 auto; /* Adjust top margin */
    }

    .form-group {
        margin-bottom: 15px;
    }
    .form-label-container {
         font-size: 0.95em; /* Slightly smaller label text */
    }
    .form-control {
        font-size: 0.9em; /* Further reduced general control font size */
        padding: 6px 10px; /* Reduced padding */
    }
    select.form-control {
        font-size: 0.9em; /* Ensure consistent font size */
        padding: 6px 25px 6px 10px; /* Adjusted padding (keep space for arrow) */
        height: auto; /* Remove fixed height calculation */
        background-size: 14px; /* Slightly smaller arrow */
    }
    .btn {
        font-size: 0.95em;
        padding: 10px 15px;
    }
    .btn-primary {
        padding: 10px 15px;
        font-size: 1em;
    }
     .btn-secondary {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    .verification-controls .btn {
        padding: 6px 10px; /* Match secondary */
        font-size: 0.9em; /* Match secondary */
    }
    .modal-content {
        padding: 15px;
        margin: 15% auto;
    }
    .modal-text-content {
        font-size: 0.85em;
    }
    
}

/* 태블릿 일때 ---------------------------- */
@media screen and (max-width: 1000px) {
    .clsMainTopText {
        width: 500px;
    }
    /* Removed fixed width for #divInput */
    /* #divInput {
        width: 400px;
    } */
}

/*----------------모바일------------------*/
@media screen and (max-width: 500px) {
    #divInput {
        width: 90%;
    }
    .clsMainTopText {
        width: 90%;        
    }

    .clsInput {
        margin-bottom:5px;
    }

}

@media screen and (max-width: 480px) {
    .clsMainTitle {
        font-size: 1.5em;
        padding: 4px 10px;
        margin-top: 20px;
    }

    .clsMainTopText {
        font-size: 1em;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; /* Enable scroll if needed for the modal overlay itself */
    background-color: rgba(0,0,0,0.6); /* Darker overlay */
    padding-top: 15vh; /* Add some padding from the top for very long modals, increased from 5vh */
    padding-bottom: 5vh;
}

.modal-content {
    background-color: #fefefe;
    margin: 0 auto; /* Centered horizontally, top margin handled by .modal padding */
    padding: 20px;
    border: 1px solid #ddd;
    width: 90%; /* Default width for mobile-first approach */
    max-width: 600px; /* Max width for larger screens, reduced from 700px */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 14px; /* Base font size for modal content */
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 24px; /* Slightly smaller for a cleaner look */
    font-weight: bold;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    font-size: 1.3em; /* Relative to modal-content font-size */
    font-weight: 600;
    margin-top: 0; /* Remove top margin if padding is already there */
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-text-content {
    font-size: 1em; /* Relative to modal-content font-size (so, 14px) */
    line-height: 1.6;
    color: #444;
    max-height: 70vh; /* Limit height and allow scroll */
    overflow-y: auto; /* Add scrollbar for overflow */
    padding-right: 10px; /* Space for scrollbar */
}

.modal-text-content p {
    margin-bottom: 10px;
}

.modal-text-content strong {
    font-weight: 600;
    color: #222;
}

/* Responsive Modal - Further adjustments for very small screens if needed */
@media screen and (max-width: 480px) {
    .modal-content {
        padding: 15px;
        font-size: 13px; /* Slightly smaller base font for very small screens */
    }
    .modal-content h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .modal-text-content {
        max-height: 65vh; /* Adjust max height if needed */
    }
    .modal-close {
        top: 5px;
        right: 10px;
        font-size: 22px;
    }
}

/* Checkbox Styling */
.privacy-check-line {
    display: flex;
    align-items: center;
}

.form-checkbox {
    font-size: 0.95em;
    color: #333;
    margin-left: 5px;
    cursor: pointer;
}

/* Style the actual checkbox input - limited styling possible */
asp\:CheckBox input[type="checkbox"],
input[type="checkbox"].form-checkbox {
    width: 1.1em; 
    height: 1.1em;
    margin-right: 8px; /* Increased space after checkbox */
    flex-shrink: 0; /* Prevent shrinking */
    margin-top: 2px; /* Fine-tune vertical alignment */
    cursor: pointer;
    accent-color: #27ae60; 
}

/* Section Title Styling */
.form-section-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    margin-top: 15px; /* Add space above title */
    padding-left: 10px; /* Align with form group padding */
    text-align: left;
}

/* Section Divider Styling */
.section-divider {
    border: none;
    border-top: 1px solid #e0e0e0; /* Light grey line */
    margin: 30px 0; /* Space around divider */
}

/* Responsive Section Title */
@media screen and (max-width: 768px) {
    .form-section-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    .section-divider {
        margin: 25px 0;
    }
    /* ... other responsive styles ... */
}

