/* ==========================================================================
   Nexir Helpdesk — Garantía y Devoluciones
   Prefix: nxr-helpdesk
   ========================================================================== */

#main .page-content {
    background-color: transparent !important;
}

.nxr-helpdesk {
    font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
}

/* Card container */
.nxr-helpdesk__card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Header */
.nxr-helpdesk__header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #E5E7EB;
}

.nxr-helpdesk__header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #074D43;
    margin: 0 0 0.5rem;
}

.nxr-helpdesk__header p {
    font-size: 15px;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
}

/* Row grid (two columns) */
.nxr-helpdesk__row {
    display: flex;
    gap: 1rem;
}

.nxr-helpdesk__col {
    flex: 1;
    min-width: 0;
}

/* Fields */
.nxr-helpdesk__field {
    margin-bottom: 1.25rem;
}

.nxr-helpdesk__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 0.375rem;
}

.nxr-helpdesk__required {
    color: #dc3545;
}

.nxr-helpdesk__input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #344054;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.nxr-helpdesk__input:focus {
    outline: none;
    border-color: #268458;
    box-shadow: 0 0 0 3px rgba(38, 132, 88, 0.12);
    background: #ffffff;
}

.nxr-helpdesk__input::placeholder {
    color: #9CA3AF;
}

/* Select */
.nxr-helpdesk__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Textarea */
.nxr-helpdesk__textarea {
    resize: vertical;
    min-height: 100px;
}

/* File inputs */
.nxr-helpdesk__file {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.nxr-helpdesk__file::file-selector-button {
    padding: 6px 16px;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #074D43;
    background: #EAFCF4;
    border: 1px solid #268458;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nxr-helpdesk__file::file-selector-button:hover {
    background: #d0f5e5;
}

/* Hints */
.nxr-helpdesk__hint {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* Conditional section */
.nxr-helpdesk__conditional {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.nxr-helpdesk__separator {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1.25rem;
    gap: 1rem;
}

.nxr-helpdesk__separator::before,
.nxr-helpdesk__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.nxr-helpdesk__separator span {
    font-size: 13px;
    font-weight: 600;
    color: #074D43;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Submit */
.nxr-helpdesk__submit {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E5E7EB;
}

.nxr-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: #268458;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.nxr-btn--primary:hover {
    background: #3B996D;
}

/* Alerts */
.nxr-helpdesk__alert {
    max-width: 720px;
    margin: 0 auto 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.nxr-helpdesk__alert--success {
    background: #EAFCF4;
    color: #074D43;
    border: 1px solid #268458;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.nxr-helpdesk__alert--success svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #268458;
}

.nxr-helpdesk__alert--success p {
    margin: 0;
}

.nxr-helpdesk__alert--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.nxr-helpdesk__alert--error ul {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: disc;
}

.nxr-helpdesk__alert--error li {
    margin-bottom: 0.25rem;
}

.nxr-helpdesk__alert--error li:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .nxr-helpdesk__card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .nxr-helpdesk__row {
        flex-direction: column;
        gap: 0;
    }
}
