/* DMS - Device Management System Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* ========================================
   Mobile - Remove ALL tap/selection highlights
======================================== */
@media (max-width: 640px) {
    /* Nuclear option - remove ALL selection/highlight from everything */
    *,
    *::before,
    *::after {
        -webkit-tap-highlight-color: transparent !important;
        tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        outline: none !important;
        outline: 0 !important;
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        border-color: inherit;
    }

    /* Re-enable text selection for form inputs only */
    input,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }

    /* Remove focus/active/hover outlines - all states */
    *:focus,
    *:active,
    *:hover,
    *:focus-visible,
    *:focus-within,
    *:-moz-focusring,
    *::-moz-focus-inner {
        outline: none !important;
        outline: 0 !important;
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        -webkit-tap-highlight-color: transparent !important;
        box-shadow: none !important;
        border-color: inherit !important;
    }

    /* Target divs and containers specifically */
    div,
    section,
    article,
    aside,
    main,
    header,
    footer,
    nav,
    span,
    p,
    h1, h2, h3, h4, h5, h6 {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
        outline: 0 !important;
        outline-width: 0 !important;
    }

    /* All container states */
    div:focus,
    div:active,
    div:focus-visible,
    div:focus-within,
    section:focus,
    section:active,
    section:focus-visible,
    article:focus,
    article:active {
        outline: none !important;
        outline: 0 !important;
        box-shadow: none !important;
        border-color: inherit !important;
    }

    /* Specific class targeting for cards and wrappers */
    [class*="card"],
    [class*="wrapper"],
    [class*="container"],
    [class*="section"],
    [class*="info"],
    [class*="form"] {
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
    }

    [class*="card"]:focus,
    [class*="card"]:active,
    [class*="card"]:focus-visible,
    [class*="wrapper"]:focus,
    [class*="wrapper"]:active,
    [class*="container"]:focus,
    [class*="container"]:active {
        outline: none !important;
        box-shadow: none !important;
    }
}

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

/* ========================================
   Header Styles
======================================== */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-item a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-item a:hover {
    color: #48bb78;
}

.nav-item a.active {
    color: #48bb78;
    font-weight: 600;
    position: relative;
}

.nav-item a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #48bb78;
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    position: relative;
}

.language-selector:hover {
    background-color: #f7fafc;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f7fafc;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8fafc;
}

.language-option.selected {
    background-color: #edf2f7;
    font-weight: 600;
}

.language-option .flag {
    width: 20px;
    height: 15px;
}

.language-option-text {
    flex: 1;
    font-size: 0.9rem;
    color: #4a5568;
}

.language-check {
    color: #48bb78;
    font-weight: bold;
    font-size: 1rem;
}

.flag {
    width: 20px;
    height: 15px;
    background: #ff0000;
    position: relative;
    display: inline-block;
}

.flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 33.33%;
    background: #008000;
}

.flag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33.33%;
    background: #ffffff;
}

/* Login Button */
.login-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.login-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

/* Mobile Header Right */
.mobile-header-right {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 24px;
    height: 3px;
    background: #4a5568;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: #4a5568;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Menu Active State */
.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f7fafc;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item a {
    display: block;
    padding: 1rem 2rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-nav-item a:hover {
    background-color: #f8fafc;
    color: #2d3748;
}

.mobile-nav-item a.active {
    background-color: #f0fff4;
    color: #48bb78;
    font-weight: 600;
    border-left: 4px solid #48bb78;
}

/* Mobile styles for language selector and login button */
.mobile-language-selector {
    font-size: 0.8rem;
    padding: 6px 10px;
    gap: 0.4rem;
}

.mobile-language-selector .flag {
    width: 16px;
    height: 12px;
}

.mobile-login-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 20px;
}

/* ========================================
   Main Content Styles
======================================== */
.main {
    margin: 0;
    padding: 0;
    padding-top: 95px;
}

.section {
    background: white;
    margin: 2rem 0;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    text-align: center;
    color: #4a5568;
    font-weight: 600;
}

.section-header {
    position: relative;
    margin-bottom: 2rem;
}

.section-icon-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-icon-badge.check {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.section-icon-badge.register {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.section-icon-badge.importer {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.section-icon-badge.payment {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.section-icon-badge.fees {
    background: linear-gradient(135deg, #38b2ac, #319795);
}

.section-icon-badge.contact {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.section-icon-badge.faq {
    background: linear-gradient(135deg, #f56565, #c53030);
}

.section-icon-badge.login {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.section-icon-badge svg {
    width: 32px;
    height: 32px;
    color: white;
}

.section-description {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Registration Fees Section
======================================== */
.fees-container {
    margin: 2rem 0;
}

.fees-scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-behavior: smooth;
}

.fees-scroll::-webkit-scrollbar {
    height: 6px;
}

.fees-scroll::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.fees-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.fees-scroll::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.fee-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    flex: 0 0 320px;
    min-width: 320px;
}

.fee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #48bb78;
}

.free-card {
    border-color: #38b2ac;
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.05), rgba(49, 151, 149, 0.1));
}

.free-card:hover {
    border-color: #38b2ac;
}

.info-card {
    border-color: #4299e1;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.05), rgba(49, 130, 206, 0.1));
}

.info-card:hover {
    border-color: #4299e1;
}

.featured-card {
    border-color: #48bb78;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.05), rgba(56, 161, 105, 0.1));
}

.featured-card:hover {
    border-color: #48bb78;
}

.fee-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.fee-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.fee-options {
    margin: 1.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fee-option {
    margin-bottom: 1rem;
}

.fee-price {
    font-size: 2rem;
    font-weight: 700;
    color: #48bb78;
    margin-bottom: 0.25rem;
}

.fee-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #38b2ac;
    margin: 1.5rem 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fee-description {
    font-size: 0.9rem;
    color: #4a5568;
}

.fee-divider {
    font-size: 0.9rem;
    color: #a0aec0;
    margin: 0.75rem 0;
    font-weight: 500;
}

.fee-options.dual-price {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.fee-options.dual-price .fee-option {
    flex: 1;
    margin-bottom: 0;
}

.fee-options.dual-price .fee-price {
    font-size: 1.5rem;
}

.fee-options.dual-price .fee-divider {
    margin: 0;
}

.fee-card-btn {
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-secondary-outline {
    background: transparent;
    color: #38b2ac;
    border: 2px solid #38b2ac;
    text-align: center;
}

.btn-secondary-outline:hover {
    background: #38b2ac;
    color: white;
    transform: translateY(-2px);
}

.roamer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex: 1;
}

.roamer-icon {
    color: #4299e1;
}

.roamer-note {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    text-align: center;
}

/* ========================================
   Footer Styles
======================================== */
.footer {
    background: linear-gradient(135deg, #1a2332 0%, #0f1721 100%);
    color: #e2e8f0;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.contact-item svg {
    color: #48bb78;
    flex-shrink: 0;
}

.contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #48bb78;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #48bb78;
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #48bb78;
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

/* ========================================
   Contact Section Styles
======================================== */
.contact-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.contact-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Enhanced Contact Form */
.contact-form-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 15px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 10;
}

.textarea-icon {
    top: 18px;
}

.form-input-enhanced {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input-enhanced:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input-enhanced:focus + .input-icon,
.form-input-enhanced:not(:placeholder-shown) + .input-icon {
    color: #667eea;
}

.form-select-enhanced {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select-enhanced:hover {
    border-color: #667eea;
}

.form-select-enhanced:focus {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}

.form-select-enhanced optgroup {
    background: #f8fafc;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 0;
    font-style: normal;
    border-bottom: 1px solid #e2e8f0;
}

.form-select-enhanced optgroup option {
    background: white;
    color: #4a5568;
    font-weight: 400;
    padding: 10px 16px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-select-enhanced option {
    padding: 10px 16px;
    background: white;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.4;
    border: none;
}

.form-select-enhanced option:first-child {
    color: #9ca3af;
    font-style: italic;
}

.form-select-enhanced:focus optgroup {
    background: #edf2f7;
}

.form-textarea-enhanced {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    padding-top: 16px;
}

.contact-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ========================================
   Importer Section Styles
======================================== */
.importer-section {
    background: linear-gradient(135deg, rgba(159, 122, 234, 0.05) 0%, rgba(128, 90, 213, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.importer-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(159, 122, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.importer-section .section-header,
.importer-section .section-title,
.importer-section .section-description,
.importer-section .form-container {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: #9f7aea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(159, 122, 234, 0.4);
    display: block;
    margin: 2rem auto 0;
    text-align: center;
}

.btn-primary:hover {
    background: #805ad5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 122, 234, 0.5);
}

/* ========================================
   Integrated Input with Button Styles
======================================== */
.input-with-button {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-with-button:focus-within {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.input-with-button .input-icon {
    position: absolute;
    left: 15px;
    color: #a0aec0;
    z-index: 10;
    pointer-events: none;
}

.form-input-integrated {
    flex: 1;
    padding: 18px 20px 18px 50px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    outline: none;
    color: #4a5568;
}

.form-input-integrated::placeholder {
    color: #a0aec0;
}

.btn-integrated {
    background: #48bb78;
    color: white;
    border: none;
    padding: 16px 24px;
    margin: 3px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    white-space: nowrap;
    text-align: center;
}

.btn-integrated:hover {
    background: #38a169;
    transform: translateY(-1px);
}

/* Test IMEI Help Popup */
.test-imei-help {
    position: static;
    display: flex;
    align-items: center;
}

.test-imei-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.test-imei-btn:hover {
    color: #48bb78;
}

.test-imei-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid #e2e8f0;
    width: 340px;
    max-width: 90vw;
    z-index: 10000;
    display: none;
}

.test-imei-popup.active {
    display: block;
}

.test-imei-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
    border-radius: 12px 12px 0 0;
}

.test-imei-popup-header span {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.test-imei-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.test-imei-close:hover {
    color: #4a5568;
}

.test-imei-list {
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.test-imei-item {
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid transparent;
}

.test-imei-item:hover {
    background: #f0fff4;
    border-color: #c6f6d5;
}

.test-imei-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.test-imei-device {
    font-size: 0.8rem;
    color: #718096;
}

.test-imei-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.test-imei-status.registered {
    background: #c6f6d5;
    color: #22543d;
}

.test-imei-status.not-registered {
    background: #fed7d7;
    color: #742a2a;
}

.test-imei-note {
    text-align: center;
    font-size: 0.8rem;
    color: #718096;
    padding: 12px 14px;
    margin: 0;
    background: #f7fafc;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e2e8f0;
}

/* Backdrop overlay when popup is open */
.test-imei-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
}

.test-imei-backdrop.active {
    display: block;
}

/* ========================================
   IMEI Help Section
======================================== */
.imei-help {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 3px solid #48bb78;
}

.imei-help h4 {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.imei-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.imei-methods li {
    padding: 0.3rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.imei-methods li:before {
    content: "\2713";
    color: #48bb78;
    font-weight: bold;
    margin-right: 0.6rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.imei-methods strong {
    color: #2d3748;
    margin-right: 0.3rem;
}

/* ========================================
   Carousel Styles
======================================== */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide svg {
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.carousel-img-desktop {
    display: block;
}

.carousel-img-mobile {
    display: none;
}

@media (max-width: 768px) {
    .carousel-slide {
        height: auto;
    }

    .carousel-slide img {
        height: auto;
        object-fit: contain;
    }

    .carousel-img-desktop {
        display: none;
    }

    .carousel-img-mobile {
        display: block;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-align: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #48bb78;
    transform: scale(1.2);
}

/* ========================================
   Form Styles
======================================== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
    transform: translateY(-2px);
}

.btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(72, 187, 120, 0.4);
    text-align: center;
}

.btn:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-center {
    display: block;
    margin: 2rem auto 0;
}

/* ========================================
   Result Display
======================================== */
.result {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.result.success {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #9ae6b4;
}

.result.error {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #fc8181;
}

.result.info {
    background: #bee3f8;
    color: #2a4365;
    border: 2px solid #63b3ed;
}

/* ========================================
   Device Details Modal
======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close-x:hover {
    background: #f7fafc;
    color: #2d3748;
}

.modal-close-x svg {
    width: 24px;
    height: 24px;
}

.modal-back-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-back-top:hover {
    background: #f7fafc;
    color: #2d3748;
}

.modal-back-top svg {
    width: 24px;
    height: 24px;
}

.modal-back-top:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-back-top:disabled:hover {
    background: transparent;
    color: #718096;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

.modal-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #718096;
    font-size: 0.95rem;
}

.modal-body {
    padding: 2rem;
}

.device-card {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.device-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.device-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.device-icon svg {
    width: 28px;
    height: 28px;
    color: #48bb78;
}

.device-info-header {
    flex: 1;
}

.device-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.device-imei {
    font-size: 0.85rem;
    color: #718096;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #9ae6b4;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.info-table {
    width: 100%;
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7fafc;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex: 0 0 45%;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.info-value {
    flex: 1;
    color: #718096;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.modal-close-btn {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(66, 153, 225, 0.3);
    text-align: center;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

/* ========================================
   Registration Form Styles
======================================== */
.reg-form-group {
    margin-bottom: 1.5rem;
}

.reg-form-group:last-child {
    margin-bottom: 0;
}

.reg-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.reg-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.reg-form-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.reg-option-cards {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.reg-option-card {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.reg-option-card:hover {
    border-color: #4299e1;
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
}

.reg-option-card.selected {
    border-color: #4299e1;
    background: #ebf8ff;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.reg-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.reg-option-card.selected .reg-option-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.reg-option-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.reg-option-content {
    flex: 1;
}

.reg-option-card input[type="radio"] {
    display: none;
}

.reg-option-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.reg-option-desc {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
}

.modal-nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal-back-btn {
    background: transparent;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-back-btn:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.modal-back-btn svg {
    width: 20px;
    height: 20px;
}

.modal-back-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* OTP Inputs */
.otp-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.file-upload-area:hover {
    border-color: #4299e1;
    background: #ebf8ff;
}

.file-upload-area.has-file {
    border-color: #48bb78;
    background: #f0fff4;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #a0aec0;
}

.file-upload-text {
    color: #4a5568;
    font-size: 0.9rem;
}

.file-upload-text strong {
    color: #4299e1;
}

.imei-group {
    display: grid;
    gap: 1rem;
}

.help-text {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-container:focus-within {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.country-code-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 16px;
    background: #f7fafc;
    border-right: 2px solid #e2e8f0;
    color: #4a5568;
    font-weight: 500;
}

.country-flag-ng {
    width: 24px;
    height: 16px;
    background: linear-gradient(to right, #008000 33.33%, white 33.33%, white 66.66%, #008000 66.66%);
    border-radius: 2px;
}

.phone-input-wrapper {
    flex: 1;
}

.phone-input-wrapper .reg-form-input {
    border: none;
    border-radius: 0;
}

.phone-input-wrapper .reg-form-input:focus {
    box-shadow: none;
}

/* ========================================
   FAQ Page Styles
======================================== */
.faq-section {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.03) 0%, rgba(197, 48, 48, 0.08) 100%);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.faq-category-btn {
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: white;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.faq-category-btn:hover,
.faq-category-btn.active {
    border-color: #f56565;
    background: #f56565;
    color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.faq-question:hover {
    color: #f56565;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: #718096;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #f56565;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.6;
}

/* FAQ Mobile - Disable all hover/selection effects */
@media (max-width: 640px) {
    .faq-item,
    .faq-item:hover,
    .faq-item:focus,
    .faq-item:active,
    .faq-item.active {
        box-shadow: none !important;
        transition: none !important;
    }

    .faq-question,
    .faq-question:hover,
    .faq-question:focus,
    .faq-question:active {
        color: #2d3748 !important;
        background: transparent !important;
    }

    .faq-container,
    .faq-section {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ========================================
   Login Page Styles
======================================== */
.login-section {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.03) 0%, rgba(56, 161, 105, 0.08) 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.login-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #718096;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.login-form .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-input:focus {
    outline: none;
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 4px;
}

.password-toggle:hover {
    color: #4a5568;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #48bb78;
}

.remember-me span {
    color: #4a5568;
    font-size: 0.9rem;
}

.forgot-password {
    color: #48bb78;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn-full {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(72, 187, 120, 0.3);
}

.login-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    padding: 0 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.register-link {
    text-align: center;
    color: #4a5568;
    font-size: 0.95rem;
}

.register-link a {
    color: #48bb78;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ========================================
   Page Hero Section
======================================== */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-hero.green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.page-hero.blue {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.page-hero.purple {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

.page-hero.orange {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.page-hero.teal {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
}

.page-hero.red {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.page-hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Breadcrumbs
======================================== */
.breadcrumbs {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.breadcrumbs-list a {
    color: #4299e1;
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    text-decoration: underline;
}

.breadcrumbs-separator {
    color: #cbd5e0;
}

/* Breadcrumb (singular - used on some pages) */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.breadcrumb a {
    color: #4299e1;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.25rem;
}

/* Page Header */
.page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #718096;
    font-size: 1.1rem;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 968px) {
    .desktop-nav {
        display: none;
    }

    .mobile-header-right {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .fees-scroll {
        overflow-x: auto;
        justify-content: flex-start;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .fee-card {
        flex: 0 0 320px;
        max-width: 320px;
    }
}

@media (min-width: 1200px) {
    .fees-container {
        max-width: 100%;
        margin: 2rem 0;
    }
}

@media (max-width: 1024px) {
    .contact-form-container {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 15px 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .nav-item a {
        font-size: 0.9rem;
    }

    .header-right {
        order: -1;
    }

    .main {
        margin-top: 0;
        padding-top: 155px;
    }

    .section {
        margin: 1rem 0;
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .carousel-slide {
        height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .input-with-button {
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }

    .form-input-integrated {
        padding: 15px 20px 15px 50px;
        border-bottom: 1px solid #e2e8f0;
    }

    .btn-integrated {
        margin: 0;
        border-radius: 0 0 10px 10px;
        padding: 15px;
        padding-right: 50px;
        position: relative;
    }

    .input-with-button .input-icon {
        top: 15px;
    }

    /* Position the ? help button inside the submit button on mobile */
    .input-with-button .test-imei-btn {
        position: absolute;
        bottom: 8px;
        right: 8px;
        z-index: 2;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        padding: 6px;
        color: white;
    }

    .input-with-button .test-imei-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        color: white;
    }

    .imei-help {
        margin-top: 1.25rem;
        padding: 1rem 1.25rem;
    }

    .imei-methods li {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }

    .section-icon-badge {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .section-icon-badge svg {
        width: 24px;
        height: 24px;
    }

    .btn-primary {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .fees-scroll {
        gap: 1rem;
        padding: 1rem 0.5rem 1.5rem;
    }

    .fee-card {
        flex: 0 0 85vw;
        min-width: 260px;
        max-width: 320px;
        padding: 1.5rem;
        min-height: 300px;
    }

    .fee-card-title {
        font-size: 1.1rem;
    }

    .fee-price {
        font-size: 1.7rem;
    }

    .fee-price-large {
        font-size: 2rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form-container {
        padding: 1.5rem 0;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .contact-container {
        padding: 0;
        margin: 0;
    }

    .contact-form .form-group {
        padding: 0 1rem;
    }

    .contact-btn {
        margin-left: 1rem;
        margin-right: 1rem;
        width: calc(100% - 2rem);
    }

    .form-select-enhanced {
        font-size: 16px;
        padding: 14px 16px 14px 44px;
    }

    .form-select-enhanced optgroup {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .form-select-enhanced option {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .page-hero-title {
        font-size: 1.8rem;
    }

    .page-hero-desc {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    /* Reduce container padding on mobile - less space from edges, wider content */
    .container {
        padding: 0 20px;
    }

    /* Hide breadcrumbs on mobile */
    .breadcrumbs {
        display: none;
    }

    /* Section header - small icon centered on top, title below */
    .section-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0.25rem !important;
    }

    .section-header .section-icon-badge,
    .section-icon-badge {
        width: 40px !important;
        height: 40px !important;
        margin: 0 auto 0.5rem !important;
    }

    .section-header .section-icon-badge svg,
    .section-icon-badge svg {
        width: 20px !important;
        height: 20px !important;
    }

    .section-header .section-title {
        font-size: 1.1rem !important;
        margin: 0 !important;
        text-align: center;
        color: #4a5568;
    }

    .section-title {
        font-size: 1.1rem !important;
        text-align: center;
        margin-bottom: 0.25rem !important;
    }

    .section-description {
        text-align: center;
        font-size: 0.85rem !important;
        margin-top: 0.25rem !important;
        margin-bottom: 1rem !important;
        color: #718096;
    }

    /* Contact Form - Remove outer container on mobile */
    .contact-form-container {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .contact-form .form-group {
        padding: 0 0.5rem;
    }

    .contact-btn {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        width: calc(100% - 1rem);
    }

    /* IMEI Help Section - Mobile Fix */
    .imei-help {
        padding: 1rem 1.25rem;
    }

    .imei-methods li {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
    }

    .imei-methods li:before {
        position: absolute;
        left: 0;
        top: 0.5rem;
        margin-right: 0;
    }

    .imei-methods strong {
        display: block;
        margin-bottom: 0.15rem;
        margin-right: 0;
    }

    /* Hide footer completely on mobile - navigation available in bottom nav bar */
    .footer {
        display: none;
    }

    .modal-content {
        border-radius: 15px;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .device-card {
        padding: 1.25rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }

    .info-label {
        font-weight: 600;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .login-container {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    /* Hide hamburger menu button and mobile menu on mobile when using bottom nav */
    /* To restore hamburger menu: remove or comment out this section */
    .mobile-header-right .mobile-menu-btn {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

    /* Mobile header - DMS logo and login button on same line */
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 16px !important;
        gap: 0 !important;
    }

    .logo {
        font-size: 1.5rem;
    }

    .mobile-header-right {
        gap: 0 !important;
    }

    .mobile-login-btn {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }

    /* Reduce main padding-top since header is now shorter */
    .main {
        padding-top: 65px !important;
        padding-bottom: 70px;
    }
}

/* ========================================
   Mobile Bottom Navigation Bar
   To disable: add .bottom-nav { display: none; }
   To restore hamburger: remove the hiding rules above
======================================== */
.bottom-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 640px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 8px 0;
        padding-bottom: max(8px, env(safe-area-inset-bottom)); /* For iPhone notch */
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #718096;
        font-size: 0.65rem;
        font-weight: 500;
        padding: 4px 0;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item svg {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
        stroke-width: 2;
    }

    .bottom-nav-item.active {
        color: #48bb78;
    }

    .bottom-nav-item.active svg {
        stroke: #48bb78;
    }

    .bottom-nav-item:active {
        opacity: 0.7;
    }

    /* More menu dropdown */
    .bottom-nav-more {
        flex: 1;
        position: relative;
    }

    .bottom-nav-more-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        background: none;
        border: none;
        color: #718096;
        font-size: 0.65rem;
        font-weight: 500;
        padding: 4px 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-more-btn svg {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
        stroke-width: 2;
    }

    .bottom-nav-more-btn.active,
    .bottom-nav-more.open .bottom-nav-more-btn {
        color: #48bb78;
    }

    .bottom-nav-more-btn.active svg,
    .bottom-nav-more.open .bottom-nav-more-btn svg {
        stroke: #48bb78;
    }

    .bottom-nav-dropdown {
        display: none;
        position: absolute;
        bottom: 100%;
        right: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        min-width: 160px;
        margin-bottom: 8px;
        overflow: hidden;
    }

    .bottom-nav-more.open .bottom-nav-dropdown {
        display: block;
    }

    .bottom-nav-dropdown a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        color: #4a5568;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.2s;
    }

    .bottom-nav-dropdown a:last-child {
        border-bottom: none;
    }

    .bottom-nav-dropdown a:active {
        background: #f7fafc;
    }

    .bottom-nav-dropdown a.active {
        color: #48bb78;
        background: #f0fff4;
    }

    .bottom-nav-dropdown svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
    }

    /* Overlay when more menu is open */
    .bottom-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .bottom-nav-overlay.show {
        display: block;
    }
}
