/* =======================================
   1. UMUMIY VA ASOSIY USLUBLAR
   ======================================= */
body {
    /* Montserrat shriftini qo'llash */
    font-family: 'Montserrat', sans-serif; 
    background-color: #f8f8f8; /* Sahifa foni */
    margin: 0;
    padding: 0;
    color: #333;
}

/* Header uslubi */
.page-header {
    background-color: #ffffff;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #eee; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-header img {
    max-height: 55px;
    width: auto;
}

/* Asosiy konteyner */
.main-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 30px; 
}

/* Sarlavha qismi */
.header-content {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

.header-content h1 {
    font-size: 28px;
    font-weight: 700; 
    color: #333;
    margin-bottom: 20px;
}

.header-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
}

/* =======================================
   2. FORMA (SHAKL) USLUBLARI
   ======================================= */
.registration-form {
    padding: 30px;
    background-color: #fff;
    /* Forma burchak radiusini 15px qilish */
    border-radius: 15px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Forma qatorlari uchun Flexbox */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.three-cols .form-group { flex: 1 1 30%; }
.form-row.two-cols .form-group { flex: 1 1 48%; }

/* Form Grouplar uchun joylashuv */
.form-group {
    display: flex;
    flex-direction: column;
}

/* Label (Yorliq) uslubi */
label { 
    font-size: 14px; 
    color: #333; 
    margin-bottom: 5px; 
    font-weight: 500; 
}

/* Yulduzchani qizil qilish */
label span.required { 
    color: red; 
}

/* Input va Select maydonlari */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
select {
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid #ccc; 
    /* Input burchak radiusini 15px qilish */
    border-radius: 15px; 
    box-sizing: border-box; 
    font-size: 16px;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif; /* Shriftni meros qilib olish */
}

/* Placeholder uslubi */
::placeholder {
    color: #999;
    opacity: 1; /* Firefoxda shaffoflikni o'chirish */
}

/* =======================================
   3. FOOTER VA TUGMA USLUBLARI
   ======================================= */
.form-footer {
    text-align: center;
    padding-top: 10px;
}

.checkbox-group { 
    display: flex; 
    align-items: flex-start; 
    text-align: left; 
    margin-bottom: 20px; 
    font-size: 14px; 
}
.checkbox-group input[type="checkbox"] { 
    margin-top: 5px; 
    margin-right: 10px;
    width: 16px; /* Kenglikni kattaroq qilish */
    height: 16px; /* Balandlikni kattaroq qilish */
}
.privacy-links { 
    display: block; 
    margin-top: 5px; 
    /* margin-left: -28px; (Bu kerak emasdek, chunki checkbox kattalashdi) */
    font-size: 13px; 
    color: #666; 
}
.privacy-links a { 
    color: #007bff; 
    text-decoration: none; 
}

/* Tugma (15px radius bilan) */
button[type="submit"] {
    background-color: #007bff; 
    color: white; 
    padding: 12px 30px; 
    border: none; 
    /* Tugma burchak radiusini 15px qilish */
    border-radius: 15px; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}
button[type="submit"]:hover {
    background-color: #0056b3;
}
button[type="submit"]:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}


/* Footer uslubi */
.page-footer {
    background-color: #f8f8f8; 
    text-align: center;
    padding: 40px 0 20px 0;
    margin-top: 40px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-links {
    margin-bottom: 20px;
}
.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    margin: 0 10px;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #777;
}

/* =======================================
   4. OFERTA / MAXFIYLIK SAHIFALARI UCHUN USLUBLAR
   (Bularni ham qo'shib qo'ydim, keyinchalik kerak bo'ladi)
   ======================================= */
.static-content-page {
    padding: 30px;
    background-color: #fff;
    border-radius: 15px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.static-content-page h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}
.static-content-page h3 {
    font-size: 18px;
    font-weight: 700;
    color: #444;
    margin-top: 15px;
    margin-bottom: 8px;
}
.static-content-page p, 
.static-content-page ul, 
.static-content-page ol {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}
.static-content-page ul, 
.static-content-page ol {
    padding-left: 25px;
}
.static-content-page strong {
    font-weight: 700;
    color: #222;
}

/* =======================================
   5. RESPONSIVE DESIGN (Moslashuvchan Dizayn)
   ======================================= */

/* Planshetlar uchun (992px dan past) */
@media (max-width: 992px) {
    .main-container {
        max-width: 100%;
        padding: 0 15px; 
    }

    /* 3 ustunli qatorlarni ikki ustunga o'tkazish */
    .form-row.three-cols {
        flex-wrap: wrap; 
    }
    
    .form-row.three-cols .form-group {
        flex: 1 1 45%; 
    }
}


/* Mobil qurilmalar uchun (576px dan past) */
@media (max-width: 576px) {
    /* Forma ichidagi barcha qatorlarni bir ustunga o'tkazish */
    .form-row {
        flex-direction: column; 
        gap: 15px;
    }

    /* Barcha maydonlarga to'liq kenglik berish */
    .form-row.three-cols .form-group,
    .form-row.two-cols .form-group {
        flex: 1 1 100%; 
    }
    
    /* Sarlavhani kichraytirish */
    .header-content h1 {
        font-size: 24px;
    }
}