/* ============================================
   MODERN COMPLAINT BOOK FORM STYLES
   Based on reference design with Tailwind-like approach
   ============================================ */

/* ========== GLOBAL CONTAINERS ========== */
/* .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.center {
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
} */

/* ========== FORM CONTAINER ========== */
#responsive-form {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto 30px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    padding: 2.5rem !important;
    box-sizing: border-box !important;
}

/* ========== SECTION HEADERS ========== */
.column-full h2,
#responsive-form h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
}

/* ========== GRID LAYOUTS ========== */
.form-row-libro {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 1rem;
}

.column-full,
.column-two,
.column-half {
    padding: 0.65rem;
    box-sizing: border-box;
}

/* Mobile first - todos ocupan ancho completo */
.column-full {
    width: 100%;
}

.column-two {
    width: 100%;
}

.column-half {
    width: 100%;
}

/* ========== LABELS ========== */
#responsive-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

#responsive-form label .required,
#responsive-form label .text-red {
    color: #ef4444;
}

/* ========== INPUT FIELDS ========== */
#responsive-form input[type="text"],
#responsive-form input[type="email"],
#responsive-form input[type="tel"],
#responsive-form input[type="date"],
#responsive-form input[type="number"],
#responsive-form select,
#responsive-form textarea {
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #111827 !important;
    background-color: #ffffff !important;
    transition: all 0.15s ease-in-out !important;
    box-sizing: border-box !important;
}

#responsive-form input[type="text"]:focus,
#responsive-form input[type="email"]:focus,
#responsive-form input[type="tel"]:focus,
#responsive-form input[type="date"]:focus,
#responsive-form input[type="number"]:focus,
#responsive-form select:focus,
#responsive-form textarea:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

#responsive-form input[type="text"],
#responsive-form input[type="email"],
#responsive-form input[type="tel"],
#responsive-form input[type="date"],
#responsive-form input[type="number"] {
    height: 42px !important;
}

#responsive-form select {
    height: 42px !important;
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}

#responsive-form textarea {
    min-height: 100px !important;
    max-height: 300px !important;
    resize: vertical !important;
}

/* ========== RADIO BUTTONS ========== */
#responsive-form input[type="radio"] {
    width: 1rem !important;
    height: 1rem !important;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #1e3a8a;
}

#responsive-form .radio-group {
    display: flex;
    gap: 1rem;
}

#responsive-form .radio-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.15s;
    flex: 1;
}

#responsive-form .radio-option:hover {
    background-color: #f9fafb;
}

/* ========== CHECKBOXES ========== */
#responsive-form input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #1e3a8a;
    flex-shrink: 0;
}

#responsive-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ========== MINOR SECTION (EXPANDABLE) ========== */
.minor-section {
    background-color: #eff6ff;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    margin-top: 1.5rem;
}

.tutor-fields {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #bfdbfe;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tutor-fields.active {
    display: grid;
}

@media (min-width: 768px) {
    .tutor-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== FILE UPLOAD / DROPZONE ========== */
.file-upload-section {
    background-color: #f9fafb;
    padding: 1.5rem;
    border: 2px dashed #d1d5db;
    margin: 2rem 0;
}

.file-upload-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.file-upload-section p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 128px;
    padding: 1.5rem;
    border: 2px dashed #d1d5db;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.dropzone:hover {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

.dropzone-content {
    text-align: center;
}

.dropzone-content p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.dropzone-content .font-semibold {
    font-weight: 600;
    color: #1f2937;
}

#responsive-form input[type="file"] {
    display: none;
}

/* ========== LEGAL SECTION ========== */
.legal-info {
    background-color: #f3f4f6;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.875rem !important;
    color: #6b7280;
    line-height: 1.6;
}

.legal-info p {
    margin: 0.5rem 0;
}

.legal-info strong {
    color: #1f2937;
    font-weight: 600;
}

.legal-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0.75rem 0;
    padding-top: 0.75rem;
}

.text-sym-blue {
    color: #1e3a8a;
    text-decoration: underline;
}

/* ========== BUTTONS ========== */
#responsive-form input[type="submit"],
#responsive-form input[type="button"],
#responsive-form button[type="submit"],
#responsive-form .btn-submit {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    /*color: #ffffff !important;*/
    /*background-color: #1e3a8a !important;*/
    /* border: none !important; */
    /* border-radius: 0 !important; */
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    height: auto !important;
}

#responsive-form input[type="submit"]:hover,
#responsive-form input[type="button"]:hover,
#responsive-form button[type="submit"]:hover,
#responsive-form .btn-submit:hover {
    /*background-color: #1e40af !important;*/
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15) !important;
}

#responsive-form .btn-cancel {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    /* color: #374151 !important; */
    /* background-color: #e5e7eb !important; */
    border: none;
    /* border-radius: 0 !important; */
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-right: 1rem !important;
}

/* #responsive-form .btn-cancel:hover {
    background-color: #d1d5db !important;
} */

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .button-group {
        justify-content: center;
    }
}

/* ========== ERROR MESSAGES ========== */
.alert,
label.error,
#responsive-form .error {
    color: #dc2626 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem;
}

/* ========== UTILITY CLASSES ========== */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.text-xs-center {
    text-align: center;
}

.g-recaptcha {
    display: inline-block;
}

/* ========== LEGACY COMPATIBILITY ========== */
.title {
    margin-bottom: 10px;
    text-align: center;
    margin-top: -2px;
    border-bottom: 1px solid #d1d5db;
}

.title h2 {
    display: inline-block;
    font-size: 1.875rem;
    margin-bottom: -2px;
    border-bottom: 2px solid #1e3a8a;
}

.subtitle h3 {
    color: #000;
    display: block;
    text-align: center;
    margin: 0 auto;
    line-height: 2;
}

.claim-wong .text-content {
    width: 100%;
    margin: 10px auto 0;
}

.claim-wong .description {
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: #374151;
}

.claim-wong .description p {
    line-height: 1.5rem;
    margin: 0;
    font-weight: 300;
    color: #6b7280;
}

.claim-wong .description fieldset {
    border: 1px solid #d1d5db;
    background: #f9fafb;
}

.claim-wong .description p .color-highlight {
    color: #dc2626;
}

.claim-wong .description p span {
    font-weight: 600;
    color: #1f2937;
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */
@media only screen and (min-width: 768px) {
    .column-half {
        width: 33.33%;
        float: left;
        font-size: 1.125rem;
    }
    
    .column-two {
        width: 50%;
        float: left;
        font-size: 1.125rem;
    }
    
    .column-full {
        width: 100%;
        float: left;
        font-size: 1.125rem;
    }
    
    #responsive-form {
        padding: 3rem !important;
    }
}

@media (max-width: 767px) {
    #responsive-form {
        padding: 1.5rem !important;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .column-half,
    .column-two,
    .column-full {
        float: none;
    }
}