/* ===== RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER (RED BAR) ===== */
.topbar {
    background: #d0021b;
    padding: 20px 30px;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 45px;      /* Adjust this height to make your logo bigger or smaller */
    width: auto;       /* Keeps the logo from stretching */
    display: block;
    object-fit: contain;
}

/* Optional: Add a hover effect to the logo */
.logo-link:hover {
    opacity: 0.9;
}


.top-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.help-pill {
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.help-pill:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== MAIN CONTENT ===== */
.page {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-box {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

/* ===== PAGE TITLE ===== */
.page-title {
    font-size: 28px;
    color: #333333;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}


/* ===== MESSAGE STYLES ===== */
.message {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== HIDDEN HONEYPOT ===== */
.hp-field {
    opacity: 0;
    position: absolute;
    top: -100px;
    left: 0;
    width: 0;
    height: 0;
}

/* ===== FLOATING LABEL INPUTS ===== */
.field-floating {
    position: relative;
    margin-bottom: 35px;
}

.field-floating label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: white;
    padding: 0 8px;
    font-size: 13px;
    color: #0b6a72;
    font-weight: 600;
    z-index: 1;
    transition: all 0.2s;
}

.field-floating input {
    width: 100%;
    height: 60px;
    border: 2px solid #cccccc;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #333;
    transition: border-color 0.2s;
}

.field-floating input:focus {
    border-color: #999;
}

.second-field {
    margin-top: 40px;
}

/* ===== INSTRUCTION TEXT ===== */
.instr-text {
    text-align: center;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 30px 0;
    padding: 0 10px;
}

/* ===== CARD GRAPHIC ===== */
.card-graphic {
    width: 280px;
    height: 160px;
    border: 2px solid #cccccc;
    border-radius: 14px;
    padding: 18px;
    margin: 0 auto 40px;
    background: white;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dollar {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #999999;
    font-size: 14px;
}

.bar-line {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    margin-bottom: 10px;
}

.bar-line.full {
    width: 85%;
}

.bar-line.short {
    width: 60%;
}

.barcode {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 40px;
    margin: 15px 0 12px;
    justify-content: center;
}

.barcode div {
    background: #2c2c2c;
    width: 2px;
}

.num-line {
    font-size: 9px;
    color: #666666;
    margin-bottom: 4px;
    text-align: center;
}

.num-line .circle {
    border: 1.5px solid #d0021b;
    border-radius: 20px;
    padding: 2px 7px;
    display: inline-block;
    margin-left: 5px;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    width: 100%;
    height: 65px;
    background-color: #d0021b;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background-color: #b00018;
}

/* ===== SPINNER ===== */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== NOTE TEXT ===== */
.note {
    text-align: center;
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
    margin-top: 15px;
}

/* ===== FOOTER BAR ===== */
.footer-bar {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 25px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.deals-text {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

.email-section {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dddddd;
    border-radius: 6px;
    overflow: hidden;
}

.email-input {
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.clear-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn svg {
    width: 14px;
    height: 14px;
}

.signup-btn {
    background: #222222;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.signup-btn:hover {
    background: #000000;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-links a:hover {
    color: #333333;
}

.external-icon {
    font-size: 11px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .topbar {
        padding: 15px 20px;
    }
    
    .topbar-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-box {
        padding: 15px;
    }
    
    .field-floating input {
        height: 55px;
        padding: 0 15px;
    }
    
    .card-graphic {
        width: 250px;
        height: 140px;
        padding: 15px;
    }
    
    .submit-btn {
        height: 60px;
        font-size: 18px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .email-section {
        width: 100%;
        max-width: 300px;
    }
    
    .email-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .instr-text {
        font-size: 14px;
    }
    
    .card-graphic {
        width: 230px;
        height: 130px;
    }
    
    .num-line {
        font-size: 8px;
    }
    
    .submit-btn {
        height: 55px;
    }
}
