/**
 * BESOIN - Header/Navbar Styles
 * File: assets/css/header.css
 * 
 * Restored full-width navbar with enlarged logo
 */

/* ============================================
   BESOIN NAVBAR - MAIN CONTAINER
   ============================================ */

.besoin-navbar {
    width: 100%;
    padding: 16px 0;
    min-height: auto;
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    position: relative;
    z-index: 100;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.besoin-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
}

/* ============================================
   LOGO SECTION - ENLARGED
   ============================================ */

.besoin-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.besoin-logo:hover {
    opacity: 0.85;
}

.besoin-logo .logo-img {
    width: auto;
    height: 56px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.besoin-logo:hover .logo-img {
    transform: scale(1.05);
}

/* Logo size variants */
.besoin-logo .logo-img.small {
    height: 44px;
}

.besoin-logo .logo-img.medium {
    height: 50px;
}

.besoin-logo .logo-img.large {
    height: 60px;
}

.besoin-logo .logo-img.xl {
    height: 70px;
}

/* ============================================
   SEARCH WRAPPER - FLEXIBLE
   ============================================ */

.besoin-search-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.besoin-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fbfe;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    flex: 1;
    min-width: 250px;
    max-width: 700px;
}

/* ============================================
   DROPDOWN BUTTONS
   ============================================ */

.besoin-drop-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.besoin-drop-btn:hover {
    color: #0066cc;
}

.besoin-drop-btn i {
    font-size: 16px;
}

.drop-label {
    max-width: none;
    overflow: visible;
}

/* Dividers in search bar */
.besoin-divider {
    width: 1px;
    height: 24px;
    background: #e8ecf1;
}

/* ============================================
   SEARCH INPUT
   ============================================ */

.besoin-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    font-family: inherit;
}

.besoin-input::placeholder {
    color: #999;
}

.besoin-input:focus {
    outline: none;
}

/* ============================================
   LOCATION DROPDOWN
   ============================================ */

.besoin-location {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-left: 1px solid #e8ecf1;
    border-right: 1px solid #e8ecf1;
}

.besoin-location-btn {
    padding: 6px 8px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.besoin-location-btn:hover {
    color: #0066cc;
}

.besoin-location-btn i {
    font-size: 14px;
}

/* ============================================
   SEARCH BUTTON
   ============================================ */

.besoin-search-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #d56022 0%, #c94d1a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(213, 96, 34, 0.2);
}

.besoin-search-btn:hover {
    background: linear-gradient(135deg, #c94d1a 0%, #b5431a 100%);
    box-shadow: 0 6px 16px rgba(213, 96, 34, 0.3);
    transform: translateY(-2px);
}

.besoin-search-btn:active {
    transform: translateY(0);
}

.besoin-search-btn i {
    font-size: 16px;
}

/* ============================================
   ACTION BUTTONS - RIGHT SECTION
   ============================================ */

.besoin-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.besoin-action-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.besoin-action-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.besoin-action-btn:active {
    transform: scale(0.98);
}

.besoin-action-btn i {
    font-size: 16px;
}

.besoin-action-btn.btn-profile {
    border-color: #d6e2f5;
    color: #14305f;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.besoin-action-btn.btn-profile:hover {
    border-color: #9ab7eb;
    color: #0f2a55;
    background: #eef4ff;
}

.besoin-action-btn.btn-login {
    border-color: #d6e2f5;
    color: #17366b;
    background: #ffffff;
}

.besoin-action-btn.btn-login:hover {
    border-color: #98b6ea;
    color: #0f2d60;
    background: #eef4ff;
}

.besoin-action-btn.btn-register {
    background: linear-gradient(135deg, #1f77d0 0%, #0e5fad 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(31, 119, 208, 0.25);
}

.besoin-action-btn.btn-register:hover {
    background: linear-gradient(135deg, #1669bd 0%, #0c5297 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(31, 119, 208, 0.35);
    transform: translateY(-2px);
}

.besoin-action-btn.btn-quote {
    background: linear-gradient(135deg, #d56022 0%, #c94d1a 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(213, 96, 34, 0.24);
}

.besoin-action-btn.btn-quote:hover {
    background: linear-gradient(135deg, #c94d1a 0%, #b5431a 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(213, 96, 34, 0.35);
    transform: translateY(-2px);
}

/* Primary button style */
.besoin-action-btn.primary,
.besoin-action-btn.btn-add-business {
    background: linear-gradient(135deg, #d56022 0%, #c94d1a 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(213, 96, 34, 0.2);
}

.besoin-action-btn.primary:hover,
.besoin-action-btn.btn-add-business:hover {
    background: linear-gradient(135deg, #c94d1a 0%, #b5431a 100%);
    box-shadow: 0 6px 16px rgba(213, 96, 34, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   QUOTE REQUEST MODAL
   ============================================ */

.quote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 42, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1080;
}

.quote-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quote-modal {
    width: min(920px, 100%);
    max-height: min(88vh, 860px);
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e7edf7;
    box-shadow: 0 20px 60px rgba(8, 18, 42, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quote-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #ebf1f8;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.quote-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #102a56;
}

.quote-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid #d6e2f3;
    border-radius: 50%;
    background: #fff;
    color: #17366b;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quote-modal-close:hover {
    border-color: #c2d4ef;
    background: #f4f8ff;
}

.quote-modal-body {
    padding: 20px 22px 22px;
    overflow-y: auto;
    color: #1f2f4e;
    font-size: 15px;
}

.quote-modal-body p {
    margin: 0 0 14px;
}

.quote-modal-body h4 {
    margin: 18px 0 10px;
    color: #0f2d60;
    font-size: 18px;
    font-weight: 800;
}

.quote-important {
    background: #fff6f0;
    border: 1px solid #ffd5bd;
    border-radius: 12px;
    padding: 12px 14px;
    color: #70381b;
}

.quote-details-list {
    margin: 0 0 14px;
    padding-left: 18px;
}

.quote-details-list li {
    margin-bottom: 8px;
}

.quote-client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin-bottom: 14px;
}

.quote-client-grid .full {
    grid-column: 1 / -1;
}

.quote-client-grid span {
    color: #0f2d60;
    font-weight: 700;
}

.quote-inline-link {
    color: #1b5dc0;
    font-weight: 700;
    text-decoration: underline;
}

.quote-inline-link:hover {
    color: #114da8;
}

.quote-response-form {
    margin-top: 12px;
    border-top: 1px solid #ebf1f8;
    padding-top: 16px;
}

.quote-response-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #0f2d60;
}

.quote-response-form textarea {
    width: 100%;
    border: 1px solid #d8e4f4;
    border-radius: 12px;
    padding: 12px 14px;
    resize: vertical;
    min-height: 120px;
    font: inherit;
    color: #1f2f4e;
}

.quote-response-form textarea:focus {
    outline: none;
    border-color: #87abe4;
    box-shadow: 0 0 0 3px rgba(72, 125, 205, 0.14);
}

.quote-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.quote-submit-btn,
.quote-whatsapp-btn,
.quote-cancel-btn {
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.quote-submit-btn {
    background: linear-gradient(135deg, #d56022 0%, #c94d1a 100%);
    color: #fff;
    border: none;
}

.quote-submit-btn:hover {
    background: linear-gradient(135deg, #c94d1a 0%, #b5431a 100%);
}

.quote-whatsapp-btn {
    background: #fff;
    color: #0e8f45;
    border-color: #c9ecd8;
}

.quote-whatsapp-btn:hover {
    background: #f0fbf5;
    color: #0c7739;
}

.quote-cancel-btn {
    background: #fff;
    color: #17366b;
    border-color: #d6e2f4;
}

.quote-cancel-btn:hover {
    background: #f4f8ff;
}

body.quote-modal-open {
    overflow: hidden;
}

/* ============================================
   DROPDOWN MENU STYLING
   ============================================ */

.besoin-dropdown-menu {
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.besoin-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    color: #333;
    transition: all 0.2s ease;
    font-size: 13px;
}

.besoin-dropdown-menu .dropdown-item:hover {
    background: rgba(0, 102, 204, 0.05);
    color: #0066cc;
}

.besoin-dropdown-menu .dropdown-item.active {
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE - TABLET (1199px and below)
   ============================================ */

@media (max-width: 1199px) {
    .besoin-container {
        gap: 16px;
        padding: 0 16px;
    }

    .besoin-search-wrapper {
        max-width: 600px;
    }

    .besoin-action-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .besoin-logo .logo-img {
        height: 52px;
    }
}

/* ============================================
   RESPONSIVE - TABLET MEDIUM (991px and below)
   ============================================ */

@media (max-width: 991px) {
    .besoin-navbar {
        padding: 12px 0;
    }

    .besoin-container {
        gap: 12px;
        padding: 0 12px;
    }

    .besoin-search-wrapper {
        flex: 1;
        min-width: auto;
        max-width: 100%;
    }

    .besoin-search-bar {
        min-width: auto;
        max-width: none;
    }

    .besoin-action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .besoin-action-btn span {
        display: none;
    }

    .besoin-action-btn i {
        display: inline;
    }

    .besoin-logo .logo-img {
        height: 48px;
    }

    .quote-modal {
        max-height: 84vh;
    }

    .quote-client-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (768px and below)
   ============================================ */

@media (max-width: 768px) {
    .besoin-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .besoin-logo {
        width: 100%;
        justify-content: flex-start;
    }

    .besoin-search-wrapper {
        width: 100%;
        flex-direction: column;
    }

    .besoin-search-bar {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .besoin-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .besoin-action-btn span {
        display: inline;
    }

    .besoin-action-btn.btn-quote {
        width: 100%;
        justify-content: center;
    }

    .besoin-divider {
        display: none;
    }

    .besoin-logo .logo-img {
        height: 44px;
    }

    .quote-modal-overlay {
        padding: 10px;
    }

    .quote-modal {
        border-radius: 14px;
        max-height: 92vh;
    }

    .quote-modal-header,
    .quote-modal-body {
        padding: 14px;
    }

    .quote-modal-header h3 {
        font-size: 18px;
    }

    .quote-modal-actions {
        flex-direction: column;
    }

    .quote-submit-btn,
    .quote-whatsapp-btn,
    .quote-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (480px and below)
   ============================================ */

@media (max-width: 480px) {
    .besoin-container {
        padding: 12px 8px;
        gap: 10px;
    }

    .besoin-search-bar {
        padding: 8px;
    }

    .besoin-action-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .besoin-drop-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .besoin-input {
        padding: 8px 10px;
        font-size: 13px;
    }

    .besoin-search-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .besoin-logo .logo-img {
        height: 40px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Brand name fallback styling */
.navbar-brand {
    font-size: 18px;
    font-weight: 800;
    color: #0e1840;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: #d56022;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
