/* ============================================
   REGISTER.CSS - Optimized for Sign Up Page
   Cleaned & optimized from category.css
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ========== HEADER ========== */
.header {
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 42px;
}
.nav-menu {
    display: flex;
    gap: 22px;
    align-items: center;
}
.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    transition: color 0.3s;
    padding-bottom: 4px;
}
.nav-menu a:hover {
    color: #ffd700;
}
.search-container {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.search-container input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    box-sizing: border-box;
}

.search-container button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #000;
    color: #fff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container button i {
    font-size: 15px;
}
.cart {
    position: relative;
    display: inline-block;
    margin-top: 6px;
}

.cart a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cart-icon {
    font-size: 24px;
    color: #fff;
}

#counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffd700;
    color: #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 0 4px rgba(0,0,0,.3);
}

/* Desktop user auth */
.user-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
}
.auth-link {
    background-color: #ffd700;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #ffd700;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.auth-link:hover {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #222;
}

/* Mobile-only user account (icon + Login) */
.user-account {
    display: none;
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 6px;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
       
.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #333;
}
       
.suggestion-item:last-child {
    border-bottom: none;
}
       
.suggestion-item:hover {
    background-color: #f5f7fa;
    padding-left: 20px;
}
       
.suggestion-item strong {
    font-weight: 500;
    color: #222;
}
       
/* Scrollbar styling */
.suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}
       
.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Cart */
.cart {
    position: relative;
    display: inline-block;
    margin-top: 6px;
}

.cart a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cart-icon {
    font-size: 24px;
    color: #fff;
}

#counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffd700;
    color: #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 0 4px rgba(0,0,0,.3);
}

/* ========== BANNER ========== */
.banner {
    background: #111;
    height: auto;
    color: #fff;
    padding: 65px 40px 40px;
    text-align: left;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
}

.banner > div {
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 52px;
    margin-bottom: 6px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ========== SIGN UP FORM ========== */
.signup-section {
    max-width: 620px;
    margin: 40px auto;
    padding: 0 20px;
}

.signup-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 45px 40px;
    border: 1px solid #f0f0f0;
}

.signup-card h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #222;
}

.signup-card .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 32px;
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
    outline: none;
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #555;
    cursor: default;
}

.form-note {
    font-size: 12.5px;
    color: #777;
    margin-top: 4px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14.5px;
}

.alert-danger {
    background: #fff0f0;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
    text-align: center;
}

.alert-success a {
    color: #1b5e20;
    text-decoration: underline;
    font-weight: 600;
}

/* Submit Button */
.btn-create-account {
    width: 100%;
    background: #ffd700;
    color: #222;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-create-account:hover {
    background: #f0c000;
    transform: translateY(-1px);
}

/* Login link */
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14.5px;
    color: #555;
}

.login-link a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Terms & Conditions Checkbox */
.terms-checkbox {
    margin-top: 12px;
    margin-bottom: 8px;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.45;
    color: #333;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #ffd700;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.terms-checkbox span a {
    color: #007bff;
    text-decoration: underline;
}

.terms-checkbox span a:hover {
    color: #0056b3;
}

/* ========== HELP SECTION ========== */
.help-section {
    background: #111;
    color: #fff;
    padding: 40px 50px;
}

.help-wrapper {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.help-left {
    flex: 0 0 280px;
}

.help-left h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.help-left p {
    font-size: 13.5px;
    opacity: 0.85;
    margin-bottom: 18px;
    line-height: 1.4;
}

.btn-request-quote {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-request-quote:hover {
    background: #fff;
    color: #111;
}

.benefits-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 15px;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.benefit-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
    width: 32px;
    color: #f4b400;
}

.benefit-card h4 {
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 5px;
}

.benefit-card p {
    font-size: 12.5px;
    line-height: 1.45;
    opacity: 0.9;
    margin: 0;
}

/* ========== FOOTER ========== */
footer {
    background: #000;
    color: #ddd;
    padding: 55px 40px 25px;
}

.footer-grid {
    max-width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 38px;
}

.footer-col {
    font-size: 14px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-col p {
    margin-bottom: 7px;
    line-height: 1.5;
    font-size: 13.8px;
}

.footer-col p i {
    width: 18px;
    color: #f4b400;
    text-align: center;
}

.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 7px;
    font-size: 13.8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ffd700;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.4px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 17px;
}

.social-icons a {
    color: #ccc;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #ffd700;
}

.newsletter-col p {
    margin-bottom: 12px;
    font-size: 13.5px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 13.5px;
    background: #fff;
}

.newsletter-form button {
    background: #ffd700;
    color: #000;
    border: none;
    padding: 0 18px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #e6c200;
}

.footer-bottom {
    max-width: 1320px;
    margin: 45px auto 0;
    padding-top: 22px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 12.5px;
    color: #888;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .banner h1 {
        font-size: 36px;
    }

    .signup-section {
        margin: 25px auto;
        padding: 0 15px;
    }

    .signup-card {
        padding: 30px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .help-section {
        padding: 30px 15px;
    }

    .help-wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .help-left {
        flex: none;
        width: 100%;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .newsletter-col {
        grid-column: span 2;
    }

    footer {
        padding: 40px 15px 20px;
    }
  /* ==================== MOBILE HEADER - EXACT IMAGE MATCH ==================== */
    .header {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 12px 16px !important;
        gap: 8px 12px !important;
        background-color: #000000 !important;
    }

    .logo {
        order: 1 !important;
        flex: none !important;
    }

    .nav-menu {
        display: none !important;
    }

    /* Hide desktop auth */
    .user-auth {
        display: none !important;
    }

    /* Show mobile auth (icon + Login) */
    .user-account {
        order: 2 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        display: block !important;
    }

    .cart {
        order: 3 !important;
        flex-shrink: 0 !important;
        margin-left: 8px !important;
    }

    /* Search full width + centered */
    .search-container {
        order: 4 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 8px 0 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .search-container input {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* Mobile Login button */
    .account-btn {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        font-size: 14px !important;
        color: #ffffff !important;
        background: transparent !important;
        border: none !important;
        text-decoration: none !important;
    }

    .account-btn i {
        color: #facc15 !important;
        font-size: 18px !important;
    }

    /* Logo tweak */
    .logo img {
        height: 36px !important;
    }
    .logo span {
        font-size: 14px !important;
        margin-left: 8px !important;
    }
}

@media (max-width: 480px) {
    .signup-card {
        padding: 25px 20px;
    }
}