* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #3b82f6 50%, #1d4ed8 75%, #1e3a8a 100%);
    min-height: 100vh;
    width: 100%;
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #3b82f6 50%, #1d4ed8 75%, #1e3a8a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-indicator p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    padding: 20px 0;
    text-align: center;
    background: rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Countdown */
.countdown-container {
    background: rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.countdown-item {
    text-align: center;
    background: rgba(30, 58, 138, 0.3);
    border-radius: 15px;
    padding: 20px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll to Form Button */
.scroll-to-form-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.scroll-to-form-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.scroll-to-form-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.scroll-to-form-btn svg {
    transition: transform 0.3s ease;
}

.scroll-to-form-btn:hover svg {
    transform: translateY(2px);
}

/* Form Section */
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.form-container h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e3a8a;
    text-align: center;
}

.form-container p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Form Styles */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #1e3a8a;
}

.form-group input {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #1e3a8a;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

.form-group input::placeholder {
    color: #999;
}

/* Accessibility improvements */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3);
}

.submit-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #28a745;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-message h4 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.success-message p {
    color: #666;
    margin: 0;
}

/* Duplicate Message */
.duplicate-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.duplicate-message div {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.phone-input-container:focus-within {
    border-color: #1e3a8a;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.country-selector {
    position: relative;
    min-width: 120px;
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.country-btn:hover {
    background: rgba(30, 58, 138, 0.1);
}

.country-btn .flag {
    font-size: 1.2rem;
}

.country-btn .country-code {
    font-weight: 600;
    color: #1e3a8a;
}

.country-btn .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.country-btn.active .arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: none;
}

.country-dropdown.show {
    display: block;
}

.search-container {
    padding: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.search-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    font-size: 0.9rem;
}

.country-list {
    max-height: 250px;
    overflow-y: auto;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.country-option:hover {
    background: #f8f9fa;
}

.country-option.selected {
    background: rgba(30, 58, 138, 0.1);
}

.country-option .flag {
    font-size: 1.2rem;
}

.country-option .country-name {
    flex: 1;
    font-size: 0.9rem;
}

.country-option .country-code {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 0.8rem;
}

.phone-input-container input[type="tel"] {
    flex: 1;
    border: none;
    background: none;
    padding: 15px;
    font-size: 1rem;
    outline: none;
}

.phone-input-container input[type="tel"]::placeholder {
    color: #999;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Checkbox Styles */
.checkbox-group {
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #1e3a8a;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.checkbox-label .link-text {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label .link-text:hover {
    text-decoration: underline;
}

.checkbox-item:last-child {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.checkbox-item.error input[type="checkbox"] {
    accent-color: #dc3545;
}

.checkbox-item.error .checkbox-label {
    color: #dc3545;
}

.checkbox-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    margin-left: 28px;
}

.checkbox-item.error .checkbox-error {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .country-selector {
        width: 100%;
    }
    
    .country-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .country-btn .flag {
        font-size: 1.2rem;
    }
    
    .country-btn .country-code {
        font-size: 0.9rem;
    }
    
    .phone-input-container input[type="tel"] {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .scroll-to-form-btn {
        padding: 12px 25px;
        font-size: 1rem;
        margin-top: 20px;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .checkbox-item {
        padding: 8px;
    }
    
    .checkbox-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .countdown-container {
        padding: 20px 15px;
    }
    
    .countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .form-container h3 {
        font-size: 1.5rem;
    }
    
    .country-selector {
        width: 100%;
    }
    
    .country-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .country-btn .flag {
        font-size: 1rem;
    }
    
    .country-btn .country-code {
        font-size: 0.8rem;
    }
    
    .phone-input-container input[type="tel"] {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .country-dropdown {
        width: 280px;
        left: 0;
    }
    
    .country-option {
        padding: 8px 12px;
    }
    
    .country-option .flag {
        font-size: 1rem;
    }
    
    .country-option .country-name {
        font-size: 0.8rem;
    }
    
    .country-option .country-code {
        font-size: 0.7rem;
    }
    
    .scroll-to-form-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
    
    .scroll-to-form-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
    }
    
    .checkbox-item {
        padding: 6px;
    }
    
    .checkbox-item input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.form-container {
    animation: fadeIn 0.8s ease-out;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
} 