/* ══════════════════════════════════════
   OpartProAccount - Front styles
   ══════════════════════════════════════ */

.opart-pro-request {
    /* max-width: 720px; */
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ── Header ── */
.opart-pro-request__header {
    text-align: center;
    margin-bottom: 2rem;
}

.opart-pro-request__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #E6254F;
    background: rgba(230, 37, 79, 0.07);
    padding: 0.375rem 0.875rem;
    border-radius: var(--adw-buttons-radius-small);
    margin-bottom: 1rem;
}

.opart-pro-request__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #4A4745;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.opart-pro-request__subtitle {
    font-size: 0.938rem;
    color: #7a7572;
    line-height: 1.6;
    margin: 0;
}

.opart-pro-request__subtitle strong {
    color: #4A4745;
}

/* ── Alert ── */
.opart-pro-alert {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--adw-buttons-radius-small);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    align-items: flex-start;
}

.opart-pro-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.opart-pro-alert--error svg { color: #ef4444; flex-shrink: 0; }
.opart-pro-alert p { margin: 0 0 0.25rem; }
.opart-pro-alert p:last-child { margin: 0; }

/* ── Sections ── */
.opart-pro-section {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: var(--adw-buttons-radius-small);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.opart-pro-section__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.opart-pro-section__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--adw-buttons-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.opart-pro-section__icon--red   { background: rgba(230, 37, 79, 0.08); color: #E6254F; }
.opart-pro-section__icon--gold  { background: rgba(227, 216, 176, 0.4); color: #b5a46a; }
.opart-pro-section__icon--dark  { background: rgba(74, 71, 69, 0.08); color: #4A4745; }

.opart-pro-section__title {
    font-size: 1.063rem;
    font-weight: 700;
    color: #4A4745;
    margin: 0;
}

/* ── Grid ── */
.opart-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── Fields ── */
.opart-pro-field {
    display: flex;
    flex-direction: column;
}

.opart-pro-field--full {
    grid-column: 1 / -1;
}

.opart-pro-field label {
    font-size: 0.813rem;
    font-weight: 600;
    color: #4A4745;
    margin-bottom: 0.375rem;
    text-align: left;
}

.opart-pro-field label .required {
    color: #E6254F;
}

.opart-pro-field input,
.opart-pro-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e8e4df;
    border-radius: var(--adw-buttons-radius-small);
    font-size: 0.938rem;
    color: #4A4745;
    background: #fafaf9;
    transition: all 0.15s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.opart-pro-field input:focus,
.opart-pro-field textarea:focus {
    border-color: #E6254F;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230, 37, 79, 0.08);
}

.opart-pro-field input::placeholder,
.opart-pro-field textarea::placeholder {
    color: #b0adaa;
}

.opart-pro-field textarea {
    resize: vertical;
    min-height: 100px;
}

.opart-pro-field__hint {
    font-size: 0.75rem;
    color: #b0adaa;
    margin-top: 0.25rem;
}

/* ── Footer ── */
.opart-pro-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}

.opart-pro-form__required-note {
    font-size: 0.813rem;
    color: #b0adaa;
    margin: 0;
}

.opart-pro-form__required-note .required {
    color: #E6254F;
}

/* ── Buttons ── */
.opart-pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--adw-buttons-radius-small);
    font-size: 0.938rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.opart-pro-btn--primary {
    background: #E6254F;
    color: #fff;
}

.opart-pro-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4A4745;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.opart-pro-btn--primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.opart-pro-btn--primary:hover {
    color: #fff;
    text-decoration: none;
}

.opart-pro-btn--secondary {
    background: #fff;
    color: #4A4745;
    border: 1.5px solid #e8e4df;
}

.opart-pro-btn--secondary:hover {
    border-color: #4A4745;
    color: #4A4745;
    text-decoration: none;
}

/* ── Success state ── */
.opart-pro-success {
    text-align: center;
    padding: 3rem 1rem;
}

.opart-pro-success__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--adw-buttons-radius-small);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
}

.opart-pro-success__icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.opart-pro-success__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A4745;
    margin: 0 0 0.75rem;
}

.opart-pro-success__text {
    font-size: 1rem;
    color: #7a7572;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.opart-pro-success__text strong {
    color: #4A4745;
}

.opart-pro-success__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .opart-pro-request__title {
        font-size: 1.375rem;
    }

    .opart-pro-grid {
        grid-template-columns: 1fr;
    }

    .opart-pro-form__footer {
        flex-direction: column;
        text-align: center;
    }

    .opart-pro-btn {
        width: 100%;
    }
}
