* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #f8f9fa;
}

/* Force Lato font for navigation */
.navbar,
.navbar ul,
.navbar li,
.navbar a,
.dropdown-toggle,
.dropdown-menu a {
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important;
    text-transform: uppercase !important;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

/* Navigation */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar li {
    position: relative;
}

.dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    display: block !important;
}

.navbar a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar a:hover,
.navbar a.active {
    color: #3498db;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 15px 0;
    margin-top: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
    display: block;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 25px;
    display: block;
    color: #2c3e50;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f0f8ff;
    color: #3498db;
    padding-left: 30px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease;
}

/* Main Content */
.question-page {
    min-height: 100vh;
    padding: 120px 20px 60px;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 50px;
    animation: fadeInUp 0.6s ease;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Form Styles */
.question-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3498db;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    align-items: flex-end;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateY(0);
    text-decoration: none;
    pointer-events: auto;
}

.telegram-btn {
    background: white;
    width: auto;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.telegram-btn i {
    background: #0088cc;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.telegram-btn span {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.telegram-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top {
    background: #3498db;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #2980b9;
    transform: scale(1.1) translateY(0);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 30px;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        height: 70px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-img {
        height: 40px;
    }

    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        transition: left 0.3s ease;
        padding: 20px;
        overflow-y: auto;
    }

    .navbar.active {
        left: 0;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .navbar li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .navbar a {
        padding: 15px 0;
        font-size: 16px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
        background: #f8f9fa;
        margin-top: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .dropdown-menu a:hover {
        background: #e9ecef;
        padding-left: 20px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .question-page {
        padding: 100px 15px 40px;
    }

    .page-container {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .intro-text {
        font-size: 15px;
    }

    .floating-buttons {
        right: 15px;
        bottom: 20px;
        left: 15px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .telegram-btn {
        padding: 10px 15px;
        width: 100%;
        max-width: calc(100vw - 30px);
        justify-content: space-between;
    }

    .telegram-btn i {
        width: 40px;
        height: 40px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .telegram-btn span {
        font-size: 14px; /* Increased for better legibility */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .back-to-top {
        align-self: flex-end;
    }

    .submit-btn {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 11px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-container {
        padding: 25px 15px;
    }
}