/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4f82d9;
    --secondary-blue: #5489e0;
    --accent-orange: #ff8a50;
    --success-green: #52c49a;
    --urgent-red: #ff6b6b;
    --light-gray: #f8fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(79, 130, 217, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-current {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-current:hover {
    background: rgba(255,255,255,0.3);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(79, 130, 217, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 100px;
}

.lang-dropdown.active .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 15px;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
}

.lang-option:hover {
    background: var(--light-gray);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.cta-button {
    background: var(--accent-orange);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 138, 80, 0.25);
}

.cta-button:hover {
    background: #f57a42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 80, 0.3);
}

/* IMAP Config Section */
.imap-config {
    background: white;
    padding: 2rem 0;
}

.config-box {
    background: #f1f5f9;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
}

.config-label {
    font-weight: bold;
    color: var(--text-dark);
}

.config-value {
    color: var(--primary-blue);
    font-weight: bold;
}

.security {
    background: var(--success-green);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
    font-weight: bold;
}

/* Features Section */
.features {
    padding: 2rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 130, 217, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* 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.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    width: 95%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(79, 130, 217, 0.3);
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--urgent-red);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group input[type="email"].invalid {
    border-color: var(--urgent-red);
}

.form-group input[type="email"].valid {
    border-color: var(--success-green);
}

/* Package Selector */
.package-selector {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.package-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin: 3px 0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.85rem;
}

.package-option:hover {
    border-color: var(--primary-blue);
}

.package-option.selected {
    border-color: var(--primary-blue);
    background: rgba(79, 130, 217, 0.1);
}

.package-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-price {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* Total Section */
.total-section {
    background: var(--light-gray);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 0.85rem;
    line-height: 1.3;
}

.terms-link {
    color: var(--primary-blue);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Order Button */
.order-button {
    width: 100%;
    background: var(--accent-orange);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-button:hover:not(:disabled) {
    background: #f57a42;
}

.order-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .config-box {
        flex-direction: column;
        align-items: center;
    }
    
    .config-item {
        width: 100%;
        max-width: 200px;
    }
}