/* Best Buy Color Palette */
:root {
    --bestbuy-blue: #0046BE;
    --bestbuy-dark-blue: #001E62;
    --bestbuy-yellow: #FFF200;
    --bestbuy-light-gray: #F5F5F5;
    --bestbuy-medium-gray: #E0E6EF;
    --bestbuy-dark-gray: #55555A;
    --white: #FFFFFF;
    --error-red: #C5050C;
    --success-green: #00A650;
}

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

body {
    font-family: 'Human BBY Digital', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bestbuy-blue) 0%, var(--bestbuy-dark-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

header {
    background: var(--bestbuy-blue);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 0;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--bestbuy-dark-gray);
    margin-bottom: 8px;
}

.required {
    color: var(--error-red);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--bestbuy-medium-gray);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--bestbuy-blue);
    box-shadow: 0 0 0 3px rgba(0, 70, 190, 0.1);
}

input[type="text"].error,
input[type="email"].error {
    border-color: var(--error-red);
}

.help-text {
    display: block;
    font-size: 12px;
    color: var(--bestbuy-dark-gray);
    margin-top: 4px;
    font-style: italic;
}

.help-text-inline {
    font-size: 12px;
    color: var(--bestbuy-dark-gray);
    font-weight: 400;
    font-style: italic;
    margin-left: 8px;
}

.error-message {
    display: block;
    color: var(--error-red);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
    min-height: 18px;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-icon {
    font-size: 18px;
}

.btn-primary {
    background: var(--bestbuy-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--bestbuy-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 70, 190, 0.3);
}

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

.btn-secondary {
    background: var(--bestbuy-dark-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: #3C3C41;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 85, 90, 0.3);
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

footer {
    background: var(--bestbuy-light-gray);
    padding: 16px;
    text-align: center;
    color: var(--bestbuy-dark-gray);
    font-size: 12px;
    border-top: 1px solid var(--bestbuy-medium-gray);
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        border-radius: 0;
    }
    
    form {
        padding: 24px;
    }
    
    header {
        padding: 24px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: var(--bestbuy-dark-gray);
    padding: 30px;
    text-align: center;
}

.modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

.modal-message {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--bestbuy-dark-gray);
    text-align: center;
    line-height: 1.6;
}

.modal-message strong {
    color: var(--bestbuy-blue);
    font-weight: 700;
}

.countdown-message {
    font-size: 16px;
    color: var(--bestbuy-dark-gray);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.countdown-message #countdown {
    display: inline-block;
    min-width: 20px;
    color: var(--bestbuy-blue);
    font-size: 20px;
    font-weight: 700;
}

.modal-instructions {
    background: var(--bestbuy-light-gray);
    border-left: 4px solid var(--bestbuy-blue);
    padding: 20px 20px 20px 40px;
    margin: 20px 0;
    border-radius: 6px;
}

.modal-instructions li {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--bestbuy-dark-gray);
    line-height: 1.5;
}

.modal-instructions li:last-child {
    margin-bottom: 0;
}

.modal-instructions strong {
    color: var(--bestbuy-blue);
    font-weight: 600;
}

.modal-footer {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.btn-large {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 24px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-icon {
        font-size: 40px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-message {
        font-size: 16px;
    }
}
