/**
 * Libro de Reclamaciones - Estilos Publicos
 * Segun formato INDECOPI Peru
 */

/* Variables */
:root {
    --lr-primary: #c41e3a;
    --lr-primary-dark: #a01830;
    --lr-secondary: #333;
    --lr-success: #28a745;
    --lr-warning: #ffc107;
    --lr-danger: #dc3545;
    --lr-light: #f8f9fa;
    --lr-border: #dee2e6;
    --lr-text: #333;
    --lr-text-muted: #6c757d;
    --lr-radius: 8px;
    --lr-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Container */
.lr-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--lr-text);
}

/* Header */
.lr-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--lr-primary);
}

.lr-logo img {
    max-height: 80px;
    margin-bottom: 15px;
}

.lr-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--lr-primary);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.lr-subtitle {
    font-size: 14px;
    color: var(--lr-text-muted);
    margin: 0;
}

/* Empresa Info */
.lr-empresa-info {
    background: var(--lr-light);
    padding: 20px;
    border-radius: var(--lr-radius);
    margin-bottom: 30px;
    border: 1px solid var(--lr-border);
}

.lr-empresa-info h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--lr-primary);
}

.lr-empresa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lr-info-item {
    font-size: 14px;
}

.lr-info-item strong {
    color: var(--lr-text-muted);
}

/* Form Sections */
.lr-section {
    background: #fff;
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--lr-shadow);
}

.lr-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--lr-secondary);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lr-border);
}

.lr-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--lr-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

/* Grid */
.lr-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.lr-col-4,
.lr-col-6,
.lr-col-12 {
    padding: 0 10px;
    margin-bottom: 15px;
}

.lr-col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.lr-col-6 { flex: 0 0 50%; max-width: 50%; }
.lr-col-12 { flex: 0 0 100%; max-width: 100%; }

/* Fields */
.lr-field {
    margin-bottom: 0;
}

.lr-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--lr-text);
}

.lr-field .required {
    color: var(--lr-danger);
}

.lr-field input[type="text"],
.lr-field input[type="email"],
.lr-field input[type="tel"],
.lr-field input[type="number"],
.lr-field input[type="date"],
.lr-field select,
.lr-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lr-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lr-field input:focus,
.lr-field select:focus,
.lr-field textarea:focus {
    outline: none;
    border-color: var(--lr-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.lr-field textarea {
    resize: vertical;
    min-height: 80px;
}

.lr-hint {
    display: block;
    font-size: 12px;
    color: var(--lr-text-muted);
    margin-top: 4px;
}

/* Radio & Checkbox */
.lr-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lr-radio-vertical {
    flex-direction: column;
    gap: 12px;
}

.lr-radio,
.lr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.lr-radio input,
.lr-checkbox input {
    margin-top: 3px;
    cursor: pointer;
}

.lr-checkbox {
    line-height: 1.4;
}

/* Terms Section */
.lr-section-terms {
    background: #fff9e6;
    border-color: var(--lr-warning);
}

/* Legal Notes */
.lr-legal-notes {
    background: var(--lr-light);
    padding: 15px 20px;
    border-radius: var(--lr-radius);
    font-size: 13px;
    color: var(--lr-text-muted);
    margin-bottom: 20px;
}

.lr-legal-notes p {
    margin: 0 0 8px 0;
}

.lr-legal-notes ul {
    margin: 0;
    padding-left: 20px;
}

.lr-legal-notes li {
    margin-bottom: 5px;
}

/* Submit Button */
.lr-submit-section {
    text-align: center;
    padding: 20px 0;
}

.lr-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--lr-primary);
    color: #fff;
    border: none;
    border-radius: var(--lr-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    min-width: 250px;
}

.lr-submit-btn:hover {
    background: var(--lr-primary-dark);
    transform: translateY(-2px);
}

.lr-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.lr-spinner {
    width: 20px;
    height: 20px;
    animation: lr-spin 1s linear infinite;
}

@keyframes lr-spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.lr-success-message {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 2px solid var(--lr-success);
    border-radius: var(--lr-radius);
    box-shadow: var(--lr-shadow);
}

.lr-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--lr-success);
    color: #fff;
    border-radius: 50%;
    font-size: 40px;
    line-height: 80px;
}

.lr-success-message h2 {
    color: var(--lr-success);
    margin: 0 0 15px 0;
}

.lr-correlativo {
    font-size: 20px;
    margin-bottom: 15px;
}

.lr-correlativo strong {
    color: var(--lr-primary);
    font-size: 24px;
}

.lr-info {
    color: var(--lr-text-muted);
    font-size: 14px;
}

.lr-new-reclamo-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--lr-primary);
    color: #fff;
    border: none;
    border-radius: var(--lr-radius);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.lr-new-reclamo-btn:hover {
    background: var(--lr-primary-dark);
}

/* Error States */
.lr-field.has-error input,
.lr-field.has-error select,
.lr-field.has-error textarea {
    border-color: var(--lr-danger);
}

.lr-error-message {
    color: var(--lr-danger);
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .lr-container {
        padding: 15px;
    }

    .lr-title {
        font-size: 22px;
    }

    .lr-section {
        padding: 20px 15px;
    }

    .lr-col-4,
    .lr-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .lr-empresa-grid {
        grid-template-columns: 1fr;
    }

    .lr-radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .lr-submit-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .lr-title {
        font-size: 18px;
    }

    .lr-section-title {
        font-size: 16px;
    }

    .lr-field input,
    .lr-field select,
    .lr-field textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
