/* ==========================================================================
   Peruvian Virtual Complaints Book (Libro de Reclamaciones) Form Styles
   ========================================================================== */

.yacana-claim-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

/* 1. Establishment Header */
.claim-form__establishment-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(15, 38, 82, 0.04);
}

.establishment-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #edf3ff;
    color: #0a4dcc;
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.establishment-name {
    font-size: 1.35rem;
    font-weight: 750;
    color: #111d33;
    margin: 0 0 0.35rem;
}

.establishment-details {
    font-size: 0.84rem;
    color: #5a6882;
    margin: 0;
    line-height: 1.55;
}

.claim-legal-seal {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.8rem;
}

/* 2. Form Sections */
.claim-form__section {
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 20px rgba(15, 38, 82, 0.03);
    transition: border-color 0.25s ease;
}

.claim-form__section:focus-within {
    border-color: #bcd1ff;
}

.claim-form__section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f4f9;
}

.section-num {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex-shrink: 0;
    background: #0a4dcc;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 750;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(10, 77, 204, 0.25);
}

.section-title {
    font-size: 1.15rem;
    font-weight: 750;
    color: #111d33;
    margin: 0 0 0.2rem;
}

.section-desc {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* 3. Inputs & Labels */
.claim-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 650;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.claim-label .req {
    color: #ef4444;
}

.claim-input,
.claim-select,
.claim-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    color: #1e293b;
    background: #ffffff;
    border: 1.5px solid #dbe2ea;
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
}

.claim-input:focus,
.claim-select:focus,
.claim-textarea:focus {
    border-color: #0a4dcc;
    box-shadow: 0 0 0 3.5px rgba(10, 77, 204, 0.12);
    background: #ffffff;
}

.claim-input.is-invalid,
.claim-select.is-invalid,
.claim-textarea.is-invalid {
    border-color: #ef4444;
    background: #fffafa;
}

.claim-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 14px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.claim-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.55;
}

.claim-error {
    display: block;
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.35rem;
}

.claim-char-count {
    font-size: 0.76rem;
}

/* 4. Radio Pills & Type Cards */
.claim-contract-type-radios {
    display: flex;
    gap: 8px;
}

.claim-radio-pill {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}

.claim-radio-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.claim-radio-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border: 1.5px solid #dbe2ea;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 650;
    color: #475569;
    background: #ffffff;
    transition: all 0.25s ease;
}

.claim-radio-pill input:checked + span {
    border-color: #0a4dcc;
    background: #edf3ff;
    color: #0a4dcc;
    box-shadow: 0 2px 8px rgba(10, 77, 204, 0.15);
}

.claim-type-card {
    display: block;
    position: relative;
    cursor: pointer;
    height: 100%;
    margin: 0;
}

.claim-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.claim-type-card__inner {
    height: 100%;
    padding: 1.25rem 1.4rem;
    border: 1.5px solid #dbe2ea;
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.25s ease;
}

.claim-type-card .type-title {
    font-size: 1rem;
    font-weight: 750;
}

.claim-type-card .type-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.claim-type-card input:checked + .claim-type-card__inner {
    border-color: #0a4dcc;
    background: #fafcff;
    box-shadow: 0 4px 16px rgba(10, 77, 204, 0.12);
}

/* 5. Legal Disclaimer & Submit */
.claim-legal-disclaimer {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.55;
    padding: 1rem 1.2rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 3px solid #0a4dcc;
}

.claim-form__submit-bar {
    text-align: center;
    margin-top: 2rem;
}

.claim-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 2.8rem;
    background: #0a4dcc;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10, 77, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.claim-submit-btn:hover {
    background: #073382;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 77, 204, 0.4);
}

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

.claim-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: claimSpin 0.7s linear infinite;
}

@keyframes claimSpin {
    to { transform: rotate(360deg); }
}

.yacana-claim-form__honeypot {
    display: none !important;
}

@media (max-width: 767px) {
    .claim-form__section {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    .claim-form__establishment-header {
        padding: 1.25rem 1.25rem;
    }
    .claim-submit-btn {
        width: 100%;
    }
}
