/* Correios Landing Page - Mobile First + Persuasion */

:root {
    --primary: #003d7a;
    --primary-dark: #002855;
    --primary-light: #0056b3;
    --accent: #ffd700;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --text-dark: #212529;
    --text-body: #495057;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.24);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Notification Bar */
.notification-bar {
    background: linear-gradient(90deg, #0b2a4d, #144a85);
    color: white;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.notification-content i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Hero Section - Mobile First */
.hero-correios {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 40px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-correios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/cover no-repeat;
    opacity: 0.3;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
}

/* Trust Indicator */
.trust-indicator {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
}

.stars {
    font-size: 16px;
}

/* Hero Main */
.hero-main {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.highlight {
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: block;
    margin-top: 8px;
}

.hero-subheadline {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.5;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.independence-note {
    font-size: 13px;
    opacity: 0.85;
    margin: -12px 0 20px;
}

/* Live Tracking */
.live-tracking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(0,255,0,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0,255,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,255,0,0);
    }
}

/* Tracking Box */
.tracking-box {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.form-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-helper {
    color: var(--text-light);
    font-size: 12px;
}

.input-group-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tracking-input {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.tracking-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0,61,122,0.1);
}

.tracking-input.valid {
    border-color: var(--success);
    background: #f0fff4;
}

.tracking-input.invalid {
    border-color: var(--danger);
    background: #fff5f5;
}

.btn-track-main {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffed4e 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,215,0,0.4);
    position: relative;
    overflow: hidden;
}

.btn-track-main::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-track-main:hover::before {
    width: 300px;
    height: 300px;
}

.btn-track-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.5);
}

.btn-track-main:active {
    transform: translateY(0);
}

.btn-track-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.security-badge,
.speed-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.security-badge i,
.speed-badge i {
    color: var(--success);
}

/* Recent Searches */
.recent-searches {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.recent-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.recent-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-item {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.recent-item.success {
    background: rgba(40,167,69,0.2);
}

.recent-item.transit {
    background: rgba(255,193,7,0.2);
}

/* Urgency Section */
.urgency-section {
    padding: 20px 0;
    background: #fff3cd;
    border-top: 3px solid var(--warning);
}

.urgency-box {
    position: relative;
}

.urgency-box h3 {
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.urgency-box h3 i {
    color: var(--warning);
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.urgency-box p {
    color: var(--text-body);
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-urgency {
    padding: 12px 24px;
    background: var(--warning);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-urgency:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Benefits Grid */
.benefits-grid {
    padding: 40px 0;
    background: var(--bg-light);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.benefit-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-icon-sm {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.benefit-text {
    flex: 1;
}

.benefit-text strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.benefit-text span {
    font-size: 12px;
    color: var(--text-light);
}

/* How It Works Simplified */
.how-works-simple {
    padding: 40px 0;
    background: white;
}

.section-title-simple {
    text-align: center;
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 32px;
    font-weight: 700;
}

.steps-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0 20px;
}

.step-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 120px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step-content span {
    font-size: 12px;
    color: var(--text-light);
}

.step-arrow {
    color: var(--primary);
    font-size: 24px;
    opacity: 0.5;
}

/* CTA Secondary */
.cta-secondary {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.cta-text {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 500;
}

.form-inline-simple {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.input-secondary {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
}

.input-secondary:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateX(2px);
}

/* Services Compact */
.services-compact {
    padding: 40px 0;
    background: var(--bg-light);
}

.services-header {
    text-align: center;
    margin-bottom: 20px;
}

.services-header h3 {
    font-size: 18px;
    color: var(--text-dark);
}

.services-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.service-pill {
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* FAQ Compact */
.faq-compact {
    padding: 40px 0;
    background: white;
}

.faq-title {
    text-align: center;
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 32px;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.faq-item h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

/* Final CTA */
.final-cta-optimized {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-final-cta {
    padding: 16px 32px;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}

.btn-final-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.5);
}

/* Floating CTA Mobile */
.floating-cta-mobile {
    position: fixed;
    bottom: -80px;
    left: 20px;
    right: 20px;
    z-index: 999;
    transition: bottom 0.3s ease;
}

.floating-cta-mobile.show {
    bottom: 20px;
}

.floating-cta-mobile button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffed4e 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Error Messages */
.error-inline {
    display: block;
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    animation: slideIn 0.3s ease;
}

.shake {
    animation: shakeInput 0.3s ease;
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Paste Notice */
.paste-notice {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    animation: fadeInDown 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .notification-bar {
        padding: 10px 0;
    }
    
    .notification-content {
        font-size: 15px;
    }
    
    .hero-correios {
        padding: 60px 0;
        min-height: 70vh;
    }
    
    .hero-headline {
        font-size: 36px;
    }
    
    .highlight {
        display: inline;
        margin-top: 0;
    }
    
    .hero-subheadline {
        font-size: 20px;
    }
    
    .tracking-box {
        padding: 32px;
        max-width: 500px;
        margin: 0 auto 32px;
    }
    
    .input-group-main {
        flex-direction: row;
    }
    
    .tracking-input {
        flex: 1;
    }
    
    .btn-track-main {
        width: auto;
        padding: 16px 32px;
    }
    
    .recent-items {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    .btn-urgency {
        width: auto;
    }
    
    .steps-simple {
        gap: 32px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .floating-cta-mobile {
        display: none;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .hero-correios {
        padding: 80px 0;
        min-height: 60vh;
    }
    
    .hero-headline {
        font-size: 48px;
    }
    
    .hero-subheadline {
        font-size: 22px;
    }
    
    .tracking-box {
        max-width: 600px;
    }
    
    .tracking-input {
        font-size: 20px;
        padding: 18px;
    }
    
    .btn-track-main {
        font-size: 20px;
        padding: 18px 40px;
    }
    
    .form-inline-simple {
        max-width: 500px;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .hero-main {
        max-width: 700px;
    }
    
    .hero-headline {
        font-size: 56px;
    }
    
    .hero-subheadline {
        font-size: 24px;
    }
}
