/**
 * Toquemonos Pure - Libro de Reclamaciones Form & Print Styles
 */

/* General Wrapper */
.tqm-lr-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(216, 129, 137, 0.08);
    padding: 40px;
    box-sizing: border-box;
    font-family: 'Figtree', 'Inter', sans-serif;
    color: #111111;
    position: relative;
    border: 1px solid rgba(216, 129, 137, 0.15);
}

/* Header */
.tqm-lr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #fdf6f7;
    padding-bottom: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.tqm-lr-header-logo h2 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
    color: #111111;
}

.tqm-lr-header-logo h2 span {
    color: #d88189;
}

.tqm-lr-header-title {
    flex: 1;
    text-align: right;
    min-width: 250px;
}

.tqm-lr-header-title h1 {
    font-size: 22px;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #d88189;
}

.tqm-lr-header-title p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Business Info Card */
.tqm-lr-info-box {
    background: #fdf6f7;
    border: 1px dashed #d88189;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.tqm-lr-info-item {
    color: #444;
}

.tqm-lr-info-item strong {
    color: #111;
}

/* Steps Progress bar */
.tqm-lr-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.tqm-lr-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.tqm-lr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
    cursor: default;
}

.tqm-lr-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.tqm-lr-step .step-text {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.tqm-lr-step.active .step-num {
    background: #d88189;
    border-color: #d88189;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(216, 129, 137, 0.3);
}

.tqm-lr-step.active .step-text {
    color: #111111;
}

.tqm-lr-step.completed .step-num {
    background: #ffffff;
    border-color: #d88189;
    color: #d88189;
}

.tqm-lr-step.completed .step-text {
    color: #d88189;
}

/* Form Steps Visibility */
.tqm-lr-form-step {
    display: none;
}

.tqm-lr-form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tqm-lr-form-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    border-left: 4px solid #d88189;
    padding-left: 12px;
}

.tqm-lr-form-step h4 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
}

.tqm-lr-form-step p.description {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* Grid Layout */
.tqm-lr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tqm-lr-field {
    display: flex;
    flex-direction: column;
}

.tqm-lr-field.col-full {
    grid-column: span 2;
}

/* Labels and Inputs */
.tqm-lr-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.tqm-lr-field label span.required {
    color: #e03131;
    font-weight: bold;
}

.tqm-lr-field input[type="text"],
.tqm-lr-field input[type="email"],
.tqm-lr-field input[type="tel"],
.tqm-lr-field input[type="number"],
.tqm-lr-field select,
.tqm-lr-field textarea {
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    color: #111111;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    width: 100%;
}

.tqm-lr-field input:focus,
.tqm-lr-field select:focus,
.tqm-lr-field textarea:focus {
    border-color: #d88189;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(216, 129, 137, 0.1);
}

.tqm-lr-field input.error,
.tqm-lr-field select.error,
.tqm-lr-field textarea.error {
    border-color: #fa5252;
    box-shadow: 0 0 0 4px rgba(250, 82, 82, 0.1);
}

/* Checkbox Style */
.checkbox-field {
    margin-top: 10px;
}

.tqm-lr-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #495057 !important;
}

.tqm-lr-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d88189;
    cursor: pointer;
    margin-top: 2px;
}

/* Radio button styles for Claim Type */
.tqm-lr-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 5px;
}

.tqm-lr-radio-label {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex !important;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #ffffff;
}

.tqm-lr-radio-label:hover {
    border-color: #d88189;
    background: #fdf6f7;
}

.tqm-lr-radio-label input[type="radio"] {
    display: none;
}

.tqm-lr-radio-label .radio-box {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    box-sizing: border-box;
}

.tqm-lr-radio-label input[type="radio"]:checked + .radio-box {
    border-color: #d88189;
}

.tqm-lr-radio-label input[type="radio"]:checked + .radio-box::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d88189;
}

.tqm-lr-radio-label input[type="radio"]:checked ~ .radio-text strong {
    color: #d88189;
}

.tqm-lr-radio-label:has(input[type="radio"]:checked) {
    border-color: #d88189;
    background: #fdf6f7;
}

.radio-text {
    display: flex;
    flex-direction: column;
}

.radio-text strong {
    font-size: 15px;
    color: #111111;
    margin-bottom: 4px;
}

.radio-text .subtext {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Minor details toggle box animation */
.tqm-lr-minor-fields {
    border: 1px solid #ffeeba;
    background: #fff9db;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button Deck */
.tqm-lr-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    border-top: 1px solid #f1f3f5;
    padding-top: 25px;
}

.tqm-lr-prev-btn {
    background: #f1f3f5;
    color: #495057;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tqm-lr-prev-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.tqm-lr-next-btn, .tqm-lr-submit-btn {
    background: #d88189;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tqm-lr-next-btn:hover, .tqm-lr-submit-btn:hover {
    background: #c27279;
    box-shadow: 0 4px 12px rgba(216, 129, 137, 0.2);
}

/* Loading Spinner Overlay */
.tqm-lr-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.tqm-lr-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(216, 129, 137, 0.15);
    border-top-color: #d88189;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tqm-lr-loader p {
    font-weight: 600;
    color: #111111;
}

/* Success State */
.tqm-lr-success {
    text-align: center;
    padding: 30px 10px;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.tqm-lr-success .success-icon {
    font-size: 60px;
    color: #2b8a3e;
    margin-bottom: 20px;
}

.tqm-lr-success h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 10px 0;
}

.tqm-lr-success .success-intro {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
}

.success-box {
    background: #fdf6f7;
    border: 1px solid rgba(216, 129, 137, 0.2);
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto 35px auto;
    text-align: left;
}

.success-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(216, 129, 137, 0.1);
    padding: 12px 0;
    font-size: 14px;
}

.success-row:last-child {
    border-bottom: none;
}

.success-row strong {
    color: #495057;
}

.highlight-code {
    font-weight: 700;
    color: #d88189;
    font-family: monospace;
    font-size: 16px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tqm-btn-primary {
    background: #d88189;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.tqm-btn-primary:hover {
    background: #c27279;
    box-shadow: 0 4px 12px rgba(216, 129, 137, 0.25);
    color: #ffffff;
}

.tqm-btn-secondary {
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #dee2e6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.tqm-btn-secondary:hover {
    background: #fafafa;
    color: #111111;
}

/* Legal Footer text */
.tqm-lr-legal-footer {
    border-top: 1px solid #f1f3f5;
    padding-top: 25px;
    margin-top: 40px;
    text-align: left;
}

.tqm-lr-legal-footer p {
    font-size: 11px;
    color: #868e96;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.tqm-lr-legal-footer p:last-child {
    margin-bottom: 0;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .tqm-lr-wrapper {
        padding: 25px;
        margin: 20px 10px;
    }
    
    .tqm-lr-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .tqm-lr-header-title {
        text-align: center;
    }
    
    .tqm-lr-info-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tqm-lr-steps {
        margin-bottom: 30px;
    }
    
    .tqm-lr-steps::before {
        left: 30px;
        right: 30px;
    }
    
    .tqm-lr-step .step-text {
        font-size: 11px;
    }
    
    .tqm-lr-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tqm-lr-field.col-full {
        grid-column: span 1;
    }
    
    .tqm-lr-radio-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .tqm-btn-primary, .tqm-btn-secondary {
        justify-content: center;
    }
}
