/* Font Face Declarations */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Base Styles and Variables */
:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --secondary-color: #1E3A8A;
    --success-color: #10B981;
    --error-color: #EF4444;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
}

/* Global Font Settings */
body {
    font-family: 'DM Sans', sans-serif;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
}

/* Header Styles */
.main-header {
    background-color: #000f57;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 43px;
    width: auto;
}

.chat-button {
    background-color: transparent;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chat-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sub Header */
.sub-header {
    background: #dfe7ff;
    width: 100%;
}

.sub-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: #2d4692;
}

.timer-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.timer-box {
    text-align: center;
}

.timer-number {
    font-size: 2rem;
    font-weight: bold;
    color: #10b981;
    line-height: 1;
}

.timer-label {
    font-size: 0.75rem;
    color: #2d4692;
    text-transform: uppercase;
    margin-top: 0.25rem;
    font-weight: bold;
}

/* Plan Cards */
.plan-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.plan-card.selected {
    border-color: var(--primary-color);
}

.plan-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease;
    font-family: 'DM Sans', sans-serif;
}

/* Form input styles */
.form-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    padding: 8px 16px;
    border: 1px solid #D1D5DB;  /* gray-300 */
    border-radius: 0.375rem;
    width: 100%;
    box-shadow: none;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Buttons */
.btn {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Promo Code Section */
.promo-container {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.promo-applied {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
}

/* Order Summary */
.order-summary {
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    color: white;
    padding: 1.5rem;
}

.order-summary-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Messages */
.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.success-message {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Loading States */
.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Helper Classes */
.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: bold;
}

/* Sticky Elements */
.sticky-sidebar {
    position: sticky;
    top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content,
    .sub-header-content {
        padding: 1rem;
    }

    .sub-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .timer-container {
        gap: 1rem;
    }

    .logo {
        height: 35px;
    }

    .btn {
        width: 100%;
    }

    .plan-card {
        margin-bottom: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .timer-container {
        gap: 0.75rem;
    }

    .timer-number {
        font-size: 1.5rem;
    }

    .timer-label {
        font-size: 0.625rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

/* Radio and Checkbox Styles */
.radio-group {
    display: flex;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Focus States */
.focus-ring {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Disabled States */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Card Shadows */
.shadow-card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Price Tags */
.price-tag {
    display: inline-flex;
    align-items: baseline;
    font-weight: bold;
    color: var(--primary-color);
}

.price-tag-currency {
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

.price-tag-amount {
    font-size: 2rem;
}

.price-tag-period {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

/* Footer Styles */
.site-footer {
    background-color: #dfe7ff;
    padding: 3rem 0;
    margin-top: 4rem;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #000f57;
    line-height: 1.3;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 70, 193, 0.1);
}

.footer-logo img {
    height: 32px;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.payment-methods img {
    height: 24px;
    width: auto;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Brand Styles */
.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: 'DM Sans', sans-serif;
    color: #2d4692;
}

/* Update footer styles for better spacing */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(107, 70, 193, 0.1);
}

.payment-methods {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.payment-methods img {
    height: 50px;
    width: auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1rem;
    }
}

/* Enhanced Plan Card Styles */
.plan-card {
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 1;
}

.plan-card:hover {
    transform: translateY(-5px);
    z-index: 2;
}

/* Price Animation */
@keyframes priceHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.plan-card:hover .text-blue-600 {
    animation: priceHighlight 0.5s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .plan-card {
        margin-bottom: 2rem;
    }
    
    .plan-card .absolute {
        font-size: 0.875rem;
    }
    
    /* Adjust offer tag positions on mobile */
    .plan-card .rotate-12 {
        right: -0.5rem;
        top: -0.5rem;
    }
}

/* Hero Section Animations */
/* Server Status Pulse Animation */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Background Blur Effect */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hover Effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Progress Bar Animation */
@keyframes loadProgress {
    from { width: 0; }
    to { width: 95%; }
}

.bg-gradient-to-r {
    animation: loadProgress 1.5s ease-out forwards;
}

/* Text Gradient Animation */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Glow Effect for Server Status Card */
.blur {
    filter: blur(20px);
}

/* Transition Effects */
.transition-all {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}