/* ==========================================
   CTT Portugal — Landing Page Styles (2026)
   Alerts, ref number, progress steps, form states
   ========================================== */

:root {
    --ctt-gradient-hero: linear-gradient(135deg, #E30613 0%, #B80510 50%, #9A040D 100%);
}

/* ===== LANDING PAGE BODY CLASS ===== */
.landing-page { background: var(--ctt-gray-bg); }

/* ===== HEADER — page-specific enhancements (base in style.css) ===== */
.ctt-header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

/* ===== HERO SECTION — gradient banner ===== */
.ctt-hero {
    background: var(--ctt-gradient-hero);
    padding: 40px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.ctt-hero-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-icon-wrapper {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}

.hero-icon-wrapper svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 2; }

/* ===== ALERT BOXES — enhanced with animations ===== */
.alert-box { padding: 16px 18px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 14px; line-height: 1.6; display: flex; align-items: flex-start; gap: 14px; box-shadow: var(--shadow-sm); animation: fadeIn 0.5s ease-out; }
.alert-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; transition: transform 0.3s ease; }
.alert-box:hover .alert-icon { transform: scale(1.1); }

/* Warning alert */
.alert-box.warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.alert-box.warning .alert-icon { stroke: #D97706; }
.alert-box.warning:hover { box-shadow: 0 2px 8px rgba(217,119,6,0.15); border-color: #FCD34D; }

/* Info alert */
.alert-box.info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.alert-box.info .alert-icon { stroke: #3B82F6; }
.alert-box.info:hover { box-shadow: 0 2px 8px rgba(59,130,246,0.15); border-color: #93C5FD; }

/* Success alert */
.alert-box.success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert-box.success .alert-icon { stroke: #10B981; }
.alert-box.success:hover { box-shadow: 0 2px 8px rgba(16,185,129,0.15); border-color: #6EE7B7; }

/* Error alert */
.alert-box.error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-box.error .alert-icon { stroke: #EF4444; }
.alert-box.error:hover { box-shadow: 0 2px 8px rgba(239,68,68,0.15); border-color: #FCA5A5; }

/* ===== REFERENCE NUMBER — enhanced styling ===== */
.ref-number { background: linear-gradient(135deg, #EEF2FF 0%, #E8ECFB 100%); border: 1px solid #C7D2FE; padding: 14px 20px; border-radius: var(--radius-md); font-family: 'SF Mono', 'Courier New', monospace; font-size: 16px; color: #4338CA; text-align: center; margin-bottom: 24px; letter-spacing: 3px; font-weight: 700; box-shadow: var(--shadow-sm); transition: all 0.3s ease; position: relative; overflow: hidden; }
.ref-number::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.6s ease; }
.ref-number:hover::before { left: 100%; }
.ref-number:hover { box-shadow: var(--shadow-md); border-color: #A5B4FC; transform: translateY(-1px); }

/* ===== PROGRESS STEPS — enhanced with animations ===== */
.progress-steps { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; align-items: center; padding: 16px 0; }
.step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ctt-border); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.step-dot::after { content: attr(data-step); position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--ctt-light-text); font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; }
.step-dot:hover::after { opacity: 1; }
.step-line { width: 40px; height: 2px; background: var(--ctt-border); border-radius: 1px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.step-line.active::before { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; background: var(--ctt-red); animation: stepProgress 1.5s ease-in-out infinite; }

@keyframes stepProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.step-dot.active { background: var(--ctt-red); transform: scale(1.3); box-shadow: 0 0 12px rgba(227,6,19,0.3); animation: pulseGlow 2s infinite; }
.step-dot.completed { background: var(--ctt-success); box-shadow: 0 0 8px rgba(16,185,129,0.25); transform: scale(1.1); }

/* ===== SECURITY INFO — enhanced ===== */
.security-info { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; background: #F9FAFB; border-radius: var(--radius-md); margin-top: 20px; font-size: 13px; color: var(--ctt-light-text); box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.security-info svg { width: 18px; height: 18px; stroke: var(--ctt-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform 0.3s ease; }
.security-info:hover { background: #F3F4F6; box-shadow: var(--shadow-md); }
.security-info:hover svg { transform: scale(1.1); }

/* ===== HONEYPOT — anti-bot field ===== */
.honeypot-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ===== FORM VALIDATION STATES (landing specific) ===== */
.form-group.has-error input { border-color: #EF4444 !important; background: #FEF2F2; animation: shakeInput 0.4s ease-in-out; }
@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.form-group.has-success input { border-color: #10B981 !important; background: #ECFDF5; }

/* ===== DELIVERY INFO BOX ===== */
.delivery-info { display: flex; align-items: center; gap: 12px; padding: 16px; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 14px; color: #9A3412; }
.delivery-info svg { width: 20px; height: 20px; stroke: #EA580C; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ===== RESPONSIVE — landing specific ===== */
@media (max-width: 480px) {
    .ref-number { font-size: 14px; letter-spacing: 2px; padding: 12px 16px; }
    .alert-box { padding: 12px 14px; font-size: 13px; gap: 10px; }
    .progress-steps { gap: 8px; margin-bottom: 20px; }
    .step-line { width: 24px; }
}
