/**
 * Liontec Perú - Libro de Reclamaciones Theme Styles
 */

.ltp-lr-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08);
    padding: 40px;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111111;
    position: relative;
    border: 1px solid rgba(0, 102, 204, 0.15);
}

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

.ltp-lr-header-logo h2 { font-size: 28px; margin: 0; font-weight: 700; color: #111; }
.ltp-lr-header-logo h2 span { color: #0066cc; }

.ltp-lr-header-title h1 { font-size: 22px; margin: 0 0 5px 0; font-weight: 700; color: #0066cc; }
.ltp-lr-header-title p { font-size: 12px; color: #666; margin: 0; }

.ltp-lr-info-box {
    background: #f4f8fc;
    border: 1px dashed #0066cc;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.ltp-lr-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 40px; }
.ltp-lr-steps::before { content: ''; position: absolute; top: 20px; left: 50px; right: 50px; height: 2px; background: #e9ecef; z-index: 1; }
.ltp-lr-step { display: flex; flex-direction: column; align-items: center; z-index: 2; flex: 1; }
.ltp-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; color: #adb5bd; }
.ltp-lr-step.active .step-num { background: #0066cc; border-color: #0066cc; color: #ffffff; box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3); }

.ltp-lr-form-step { display: none; }
.ltp-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); } }

.ltp-lr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ltp-lr-field { display: flex; flex-direction: column; }
.ltp-lr-field.col-full { grid-column: span 2; }
.ltp-lr-field label span.required { color: #e03131; }

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

.ltp-lr-field input:focus, .ltp-lr-field select:focus, .ltp-lr-field textarea:focus {
    border-color: #0066cc; background: #ffffff; box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

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

.ltp-lr-radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 5px; }
.ltp-lr-radio-label { border: 2px solid #dee2e6; border-radius: 12px; padding: 16px 20px; display: flex; gap: 15px; cursor: pointer; background: #ffffff; transition: all 0.25s ease; }
.ltp-lr-radio-label:hover, .ltp-lr-radio-label:has(input[type="radio"]:checked) { border-color: #0066cc; background: #f4f8fc; }

.ltp-lr-minor-fields { border: 1px solid #ffeeba; background: #fff9db; border-radius: 12px; padding: 25px; margin-top: 25px; }

.ltp-lr-buttons { display: flex; justify-content: space-between; margin-top: 35px; border-top: 1px solid #f1f3f5; padding-top: 25px; }
.ltp-lr-prev-btn { background: #f1f3f5; color: #495057; border: none; padding: 12px 24px; border-radius: 30px; font-weight: 600; cursor: pointer; }
.ltp-lr-next-btn, .ltp-lr-submit-btn { background: #0066cc; color: #ffffff; border: none; padding: 12px 28px; border-radius: 30px; font-weight: 600; cursor: pointer; }
.ltp-lr-next-btn:hover, .ltp-lr-submit-btn:hover { background: #004c99; box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25); }

.ltp-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; }
.ltp-lr-loader-spinner { width: 50px; height: 50px; border: 4px solid rgba(0, 102, 204, 0.15); border-top-color: #0066cc; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Pantalla de Éxito Limpia y Estructurada */
.ltp-lr-success { text-align: center; padding: 30px 15px; }
.success-icon { font-size: 64px; color: #28a745; margin-bottom: 15px; line-height: 1; }
.ltp-lr-success h2 { font-size: 24px; color: #111; margin: 0 0 10px 0; font-weight: 700; }
.success-intro { font-size: 14px; color: #666; margin: 0 0 25px 0; }

.success-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 0 auto 30px auto;
    max-width: 520px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.success-row {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.success-row:last-child { border-bottom: none; }
.highlight-code { font-weight: 700; color: #0066cc; font-family: monospace; font-size: 17px; background: #e7f5ff; padding: 3px 8px; border-radius: 4px; }

.success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ltp-btn-primary {
    background: #0066cc;
    color: #ffffff !important;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}
.ltp-btn-primary:hover {
    background: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}
.ltp-btn-secondary {
    background: #ffffff;
    color: #495057 !important;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #dee2e6;
    display: inline-block;
    transition: all 0.25s ease;
}
.ltp-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529 !important;
}

.ltp-lr-legal-footer { border-top: 1px solid #f1f3f5; padding-top: 25px; margin-top: 40px; font-size: 11px; color: #868e96; }

@media (max-width: 768px) {
    .ltp-lr-wrapper { padding: 25px; margin: 20px 10px; }
    .ltp-lr-header { flex-direction: column; text-align: center; }
    .ltp-lr-grid, .ltp-lr-radio-group { grid-template-columns: 1fr; }
    .ltp-lr-field.col-full { grid-column: span 1; }
    .success-actions { flex-direction: column; width: 100%; }
    .ltp-btn-primary, .ltp-btn-secondary { width: 100%; text-align: center; box-sizing: border-box; }
}
