/**
 * RMN Reso — Stili frontend
 * Colore primario Ramen Magazine: #c12f25
 * Tema dark: testi bianchi, input sfondo bianco/testo nero, box info bianco/testo nero
 */

.rmn-reso-wrap { max-width: 680px; margin: 40px auto; padding: 0 16px; font-family: inherit; }
.rmn-reso-header { margin-bottom: 32px; }
.rmn-reso-header h2 { font-size: 24px; font-weight: 700; color: #ffffff; margin: 0 0 8px; }
.rmn-reso-subtitle { font-size: 14px; color: #cccccc; margin: 0; }

/* Steps */
.rmn-reso-steps { display: flex; align-items: center; margin-bottom: 32px; }
.rmn-reso-step { display: flex; align-items: center; gap: 8px; }
.rmn-reso-step__num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #444; color: #aaa; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rmn-reso-step__label { font-size: 13px; color: #aaa; font-weight: 500; }
.rmn-reso-step--active .rmn-reso-step__num { background: #c12f25; color: #fff; }
.rmn-reso-step--active .rmn-reso-step__label { color: #c12f25; font-weight: 700; }
.rmn-reso-step--done .rmn-reso-step__num { background: #5a1a17; color: #e87a74; }
.rmn-reso-step--done .rmn-reso-step__label { color: #e87a74; }
.rmn-reso-step-divider { flex: 1; height: 2px; background: #444; margin: 0 12px; }
.rmn-reso-step-divider--done { background: #5a1a17; }

/* Info box abbonamento — sfondo bianco testo nero */
.rmn-reso-info-box { background: #ffffff; border: 1px solid #e0e0e0; border-left: 4px solid #c12f25; border-radius: 4px; padding: 14px 16px; margin-bottom: 24px; }
.rmn-reso-info-box p { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #333; }
.rmn-reso-info-box ul { margin: 0; padding-left: 18px; }
.rmn-reso-info-box li { font-size: 13px; color: #555; margin-bottom: 4px; }

/* Errori */
.rmn-reso-errori { background: #fff; border: 1px solid #f5c6cb; border-left: 4px solid #c12f25; border-radius: 4px; padding: 12px 16px; margin-bottom: 24px; }
.rmn-reso-errori ul { margin: 0; padding: 0 0 0 18px; }
.rmn-reso-errori li { font-size: 13px; color: #c62828; margin-bottom: 4px; }

/* Form */
.rmn-reso-form { display: flex; flex-direction: column; gap: 24px; }
.rmn-reso-field { display: flex; flex-direction: column; gap: 6px; }
.rmn-reso-field label { font-size: 14px; font-weight: 600; color: #ffffff; }
.rmn-reso-field input[type="text"],
.rmn-reso-field input[type="email"],
.rmn-reso-field textarea { width: 100%; padding: 10px 14px; border: 1px solid #555; border-radius: 4px; font-size: 14px; color: #333; background: #ffffff; box-sizing: border-box; transition: border-color .2s; }
.rmn-reso-field input:focus, .rmn-reso-field textarea:focus { border-color: #c12f25; outline: none; box-shadow: 0 0 0 3px rgba(193,47,37,.2); }
.rmn-reso-field textarea { resize: vertical; min-height: 100px; }
.rmn-reso-field-desc { font-size: 12px; color: #aaaaaa; margin: 0; }
.rmn-reso-required { color: #c12f25; margin-left: 2px; }
.rmn-reso-required-note { font-size: 12px; color: #aaaaaa; margin: 0; }

/* Lista abbonamento — sfondo bianco testo nero */
.rmn-reso-abbonamento-list { border: 1px solid #555; border-radius: 4px; padding: 12px 16px; background: #ffffff; }
.rmn-reso-abbonamento-item { font-size: 14px; color: #333; padding: 4px 0; }

/* Bottoni */
.rmn-reso-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.rmn-reso-btn-primary, .rmn-reso-btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s; border: none; line-height: 1.2; }
.rmn-reso-btn-primary { background: #c12f25 !important; color: #fff !important; border: none !important; }
.rmn-reso-btn-primary:hover { background: #a02820; color: #fff; }
.rmn-reso-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.rmn-reso-btn-secondary { background: transparent; color: #cccccc; border: 1px solid #555; }
.rmn-reso-btn-secondary:hover { background: rgba(255,255,255,.1); color: #ffffff; }
.rmn-reso-btn-confirm { background: #c12f25; }
.rmn-reso-btn-confirm:hover { background: #a02820; color: #fff; }

/* Pulsante in lista ordini */
.woocommerce-orders-table .rmn-reso-btn,
.woocommerce .rmn-reso-btn { display: inline-block; padding: 6px 14px; background: #c12f25; color: #fff !important; border-radius: 3px; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s; }
.woocommerce-orders-table .rmn-reso-btn:hover,
.woocommerce .rmn-reso-btn:hover { background: #a02820; }

/* Riepilogo step 2 — sfondo bianco testo nero */
.rmn-reso-riepilogo { background: #ffffff; border: 1px solid #444; border-radius: 6px; padding: 24px; margin-bottom: 24px; }
.rmn-reso-riepilogo h3 { font-size: 15px; font-weight: 700; color: #333; margin: 0 0 16px; }
.rmn-reso-riepilogo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rmn-reso-riepilogo-table th, .rmn-reso-riepilogo-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #e0e0e0; vertical-align: top; color: #333; }
.rmn-reso-riepilogo-table th { font-weight: 600; color: #555; width: 130px; }
.rmn-reso-prodotti-riepilogo { margin: 0; padding-left: 18px; }
.rmn-reso-prodotti-riepilogo li { margin-bottom: 4px; color: #333; }

/* Dichiarazione — sfondo bianco testo nero */
.rmn-reso-dichiarazione-testo { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e0e0e0; }
.rmn-reso-dichiarazione-label { font-size: 12px; color: #888; margin: 0 0 8px; font-style: italic; }
.rmn-reso-dichiarazione-quote { background: #ffffff; border-left: 4px solid #c12f25; margin: 0 0 8px; padding: 14px 18px; font-size: 13px; color: #333; line-height: 1.6; border-radius: 0 4px 4px 0; text-align: left; }
.rmn-reso-dichiarazione-quote p { margin: 0 0 10px; color: #333; }
.rmn-reso-dichiarazione-quote p:last-child { margin-bottom: 0; }
.rmn-reso-timestamp-nota { font-size: 11px; color: #aaaaaa; font-style: italic; margin: 0; }

/* Avviso — sfondo bianco testo nero */
.rmn-reso-avviso { background: #ffffff; border: 1px solid #e0e0e0; border-left: 4px solid #f9a825; border-radius: 4px; padding: 12px 16px; font-size: 13px; color: #555; margin-bottom: 24px; line-height: 1.5; }

/* Lookup */
.rmn-reso-wrap--lookup { max-width: 520px; }
.rmn-reso-separator { display: flex; align-items: center; gap: 16px; margin: 28px 0; color: #666; font-size: 13px; }
.rmn-reso-separator::before, .rmn-reso-separator::after { content: ''; flex: 1; height: 1px; background: #444; }
.rmn-reso-login-prompt { text-align: center; margin-bottom: 28px; }
.rmn-reso-login-prompt p { font-size: 14px; color: #cccccc; margin-bottom: 12px; }

/* Info legale lookup — sfondo bianco testo nero */
.rmn-reso-info-legale { background: #ffffff; border-radius: 4px; padding: 16px 20px; margin-top: 32px; }
.rmn-reso-info-legale h3 { font-size: 13px; font-weight: 700; color: #333; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .5px; }
.rmn-reso-info-legale ul { margin: 0; padding-left: 18px; }
.rmn-reso-info-legale li { font-size: 13px; color: #555; margin-bottom: 6px; }

/* Successo */
.rmn-reso-successo { text-align: center; padding: 48px 24px; }
.rmn-reso-icon-ok { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(193,47,37,.2); color: #c12f25; font-size: 32px; margin: 0 auto 24px; }
.rmn-reso-successo h2 { font-size: 24px; font-weight: 700; color: #c12f25; margin: 0 0 16px; }
.rmn-reso-successo p { font-size: 15px; color: #cccccc; margin: 0 0 12px; line-height: 1.6; }

/* Errore */
.rmn-reso-errore { text-align: center; padding: 48px 24px; }
.rmn-reso-errore h2 { font-size: 22px; font-weight: 700; color: #c12f25; margin: 0 0 16px; }
.rmn-reso-errore p { font-size: 14px; color: #cccccc; margin: 0 0 12px; }

/* Link */
.rmn-reso-wrap a { color: #e87a74; }
.rmn-reso-wrap a:hover { color: #c12f25; }

/* Responsive */
@media (max-width: 600px) {
    .rmn-reso-actions { flex-direction: column-reverse; align-items: stretch; }
    .rmn-reso-btn-primary, .rmn-reso-btn-secondary { width: 100%; text-align: center; }
    .rmn-reso-riepilogo-table th { width: 100px; }
}

/* ─── Sfondo scuro sulla pagina /recesso/ (page-id-1297) ────────────────────
   Usiamo la classe page-id-1297 che WordPress aggiunge al body.
   Sovrascriviamo header, footer e contenuto con sfondo scuro.          */

body.page-id-1297,
body.page-id-1297 #content,
body.page-id-1297 .site-main,
body.page-id-1297 .page-content,
body.page-id-1297 .page-header,
body.page-id-1297 #site-header,
body.page-id-1297 #site-footer {
    background-color: #111111 !important;
    color: #ffffff !important;
}

body.page-id-1297 .entry-title {
    color: #ffffff !important;
}

/* ─── Override tema Ramen sui pulsanti plugin ────────────────────────────── */
body.page-id-1297 .rmn-reso-btn-primary,
body.page-id-1297 button.rmn-reso-btn-primary {
    background: #c12f25 !important;
    background-color: #c12f25 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
}

body.page-id-1297 .rmn-reso-btn-primary:hover,
body.page-id-1297 button.rmn-reso-btn-primary:hover {
    background: #a02820 !important;
    background-color: #a02820 !important;
    color: #ffffff !important;
}

body.page-id-1297 .rmn-reso-required {
    color: #c12f25 !important;
}
