/**
 * assets/css/landing.css v 1.2
 * Landing Page Styles - TruePine Restaurant Promos
 */

/* =====================================================================
   OVERRIDE TEMI / PLUGIN ESTERNI
   ===================================================================== */
#tp-rt-floating-cart {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

.tp-rt-cart-icon-wrapper,
.tp-rt-cart-dropdown {
    display: none !important;
}

/* =====================================================================
   RESET E BASE
   ===================================================================== */
.tprp-landing-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--tprp-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    min-height: 100vh;
}

.tprp-landing-page * {
    box-sizing: border-box;
}

/* Logo con riquadro bianco */
.tprp-logo-wrapper {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tprp-logo-wrapper img {
    max-width: 170px; /* Ridotto per compensare il padding */
    height: auto;
    max-height: 80px;
}

/* Logo integrato nel box della promo */
.tprp-landing-logo-inline {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tprp-landing-logo-inline img {
    max-width: 220px;
    height: auto;
    max-height: 90px;
    display: inline-block;
}

/* =====================================================================
   LAYOUT
   ===================================================================== */
.tprp-landing-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tprp-landing-logo {
    text-align: center;
    margin-bottom: 40px;
}

.tprp-landing-logo img {
    max-width: 200px;
    height: auto;
    max-height: 100px;
}

/* =====================================================================
   STEPS & ANIMAZIONI
   ===================================================================== */
.tprp-landing-step {
    display: none;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

.tprp-landing-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   TIPOGRAFIA E CONTENUTI
   ===================================================================== */
.tprp-landing-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.3;
}

.tprp-landing-image {
    text-align: center;
    margin-bottom: 30px;
}

.tprp-landing-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tprp-landing-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.tprp-landing-description p {
    margin: 0 0 15px 0;
}

/* =====================================================================
   FORM
   ===================================================================== */
.tprp-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
}

.tprp-form-title small {
    display: block;
    font-size: 16px;
    color: var(--tprp-primary, #667eea);
    margin-top: 8px;
    font-weight: 500;
}

.tprp-form-row {
    display: flex;
    gap: 15px;
    /*margin-bottom: 20px;*/
}

.tprp-form-group {
    margin-bottom: 20px;
    flex: 1;
}

.tprp-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.tprp-form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tprp-form-group input:focus {
    outline: none;
    border-color: var(--tprp-primary, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tprp-form-checkboxes {
    margin: 25px 0;
}

.tprp-checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.tprp-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tprp-checkbox-label span {
    color: #666;
}

.tprp-checkbox-label a {
    color: var(--tprp-primary, #667eea);
    text-decoration: underline;
}

.tprp-form-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

/* =====================================================================
   BOTTONI
   ===================================================================== */
.tprp-landing-cta {
    display: block;
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    color: var(--tprp-text-on-primary, #fff);
    background: var(--tprp-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tprp-landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.tprp-landing-cta:active {
    transform: translateY(0);
}

.tprp-landing-cta .tprp-btn-loading {
    display: inline-block;
}

.tprp-landing-cta .tprp-btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================================
   THANK YOU PAGE
   ===================================================================== */
.tprp-thankyou-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

.tprp-thankyou-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
}

.tprp-code-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 3px dashed var(--tprp-primary, #667eea);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.tprp-code-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tprp-code-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--tprp-primary, #667eea);
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.tprp-copy-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tprp-primary, #667eea);
    background: #fff;
    border: 2px solid var(--tprp-primary, #667eea);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tprp-copy-btn:hover {
    background: var(--tprp-primary, #667eea);
    color: var(--tprp-text-on-primary, #fff);
}

.tprp-thankyou-note {
    font-size: 15px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tprp-expiry-note {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 20px;
}

.tprp-logged-in-greeting {
    text-align: center;
    font-size: 18px;
    color: var(--tprp-primary, #667eea);
    font-weight: 600;
    margin-bottom: 10px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
    .tprp-landing-container {
        padding: 20px 15px;
    }
    .tprp-landing-step {
        padding: 30px 20px;
    }
    .tprp-landing-title {
        font-size: 26px;
    }
    .tprp-form-row {
        flex-direction: column;
        gap: 0;
    }
    .tprp-code-value {
        font-size: 28px;
    }
    .tprp-thankyou-title {
        font-size: 24px;
    }
} /* <--- ECCO LA PARENTESI CHE MANCAVA! */