/* ======================================================================
   UPDATED STYLES.CSS - ENHANCED ALERT MESSAGES WITH ANIMATIONS
   ====================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.header-cta {
    background: #bf281e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.header-cta:hover {
    background: #a01e16;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .highlight {
    color: #bf281e;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.video-container {
    background: rgba(0,0,0,0.3);
    border: 2px dashed #bf281e;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Add this new CSS for the video */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1rem;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Remove the old play button styles since we don't need them anymore */
.play-button {
    display: none;
}

/* Lead Form - BULLETPROOF VERSION */
.lead-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 2rem;
    position: relative;
    z-index: 1000;
}

.lead-form h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* BULLETPROOF INPUT STYLES */
.form-group input,
.form-group textarea {
    width: 100% !important;
    padding: 12px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease !important;
    background-color: #ffffff !important;
    color: #333 !important;
    pointer-events: auto !important;
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    position: relative !important;
    z-index: 100 !important;
    box-sizing: border-box !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #bf281e !important;
    box-shadow: 0 0 0 3px rgba(191, 40, 30, 0.15) !important;
}

.submit-btn {
    width: 100%;
    background: #bf281e;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background: #a01e16;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

/* ENHANCED ALERT MESSAGES WITH ANIMATIONS */
#form-messages {
    min-height: 0;
    transition: all 0.3s ease;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    border: 1px solid transparent;
    position: relative;
    animation: slideInFromTop 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-success::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-error::before {
    content: '!';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
}

.alert strong {
    font-weight: 600;
}

.error-message {
    display: block;
    color: #bf281e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #bf281e;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #bf281e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.benefits-content {
    max-width: 800px;
    margin: 0 auto;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.benefit-check {
    width: 40px;
    height: 40px;
    background: #bf281e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    margin-top: 0.25rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-check::after {
    content: '✓';
}

.benefit-content {
    flex: 1;
}

.benefit-content strong {
    color: #1a1a2e;
    display: block;
    margin-bottom: 0.25rem;
}

/* Cost of Non-Compliance Section */
.cost-section {
    padding: 4rem 0;
    background: white;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cost-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fee);
    border: 1px solid #fecaca;
    border-left: 4px solid #bf281e;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cost-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(191, 40, 30, 0.1);
}

.cost-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.cost-card h3 {
    color: #bf281e;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.cost-card p {
    color: #666;
    line-height: 1.6;
}

/* Trust Indicators */
.trust-section {
    padding: 3rem 0;
    background: white;
    text-align: center;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #bf281e;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* CTA Section */
.final-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: #bf281e;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #a01e16;
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section li {
    color: #adb5bd;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cost-grid {
        grid-template-columns: 1fr;
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Mobile alert adjustments */
    .alert {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .alert::before {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 11px;
    }
}