/* =========================================================
   MAHALAXMI TRADERS — BULK ORDER PAGE
   File: css/bulk-order.css  (loaded after style.css)
   Every class starts with "bo-" to avoid clashes.
   ========================================================= */

.bulk-order-page {
    --bo-green: #0f3d2e;
    --bo-green-light: #245b4c;
    --bo-gold: #c99a44;
    --bo-gold-light: #e7c77b;
    --bo-page: #fcfaf5;
    --bo-card: #f6f1e7;
    --bo-line: #e7e0d2;
    --bo-ink: #1b221e;
    --bo-mute: #5d665f;
    --bo-danger: #e74c3c;
    --bo-success: #27ae60;
    --bo-serif: "Playfair Display", Georgia, serif;
    --bo-script: "Caveat", cursive;

    background: var(--bo-page);
    color: var(--bo-ink);
}

.bulk-order-page main > section { padding-block: 0; }

.bo-wrap {
    width: min(1280px, 92%);
    margin-inline: auto;
}

.bulk-order-page h1,
.bulk-order-page h2,
.bulk-order-page h3 {
    font-family: var(--bo-serif);
    color: var(--bo-green);
    font-weight: 700;
    line-height: 1.15;
}


/* =========================================================
   HERO
   ========================================================= */

.bo-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0d2a22 0%, #173f35 40%, #1a4a3d 70%, #245b4c 100%);
    padding: 100px 0 60px;
}

.bo-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bo-page), transparent);
    pointer-events: none;
}

.bo-hero-inner {
    position: relative;
    z-index: 2;
}

.bo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.bo-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.bo-breadcrumb a:hover { color: var(--bo-gold); }

.bo-breadcrumb span { color: rgba(255,255,255,0.4); }

.bo-breadcrumb span[aria-current] { color: var(--bo-gold-light); }

.bo-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    margin-bottom: 12px;
}

.bo-hero-title em {
    font-style: normal;
    color: var(--bo-gold-light);
}

.bo-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 550px;
}

/* Decorative particles */
.bo-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bo-hero-particles span {
    position: absolute;
    display: block;
    width: 5px;
    height: 5px;
    background: rgba(198,154,69,0.25);
    border-radius: 50%;
    animation: boFloat 8s infinite ease-in-out;
}

.bo-hero-particles span:nth-child(1) { left: 15%; top: 25%; animation-delay: 0s; }
.bo-hero-particles span:nth-child(2) { left: 35%; top: 65%; animation-delay: 1.5s; width: 4px; height: 4px; }
.bo-hero-particles span:nth-child(3) { left: 60%; top: 20%; animation-delay: 3s; width: 7px; height: 7px; }
.bo-hero-particles span:nth-child(4) { left: 80%; top: 55%; animation-delay: 0.8s; }
.bo-hero-particles span:nth-child(5) { left: 92%; top: 30%; animation-delay: 2.2s; width: 3px; height: 3px; }

@keyframes boFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-25px) scale(1.4); opacity: 0.7; }
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.bo-main {
    padding: 50px 0 80px;
}

.bo-main-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}


/* =========================================================
   MINIMUM ORDER BANNER
   ========================================================= */

.bo-min-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(198,154,69,0.12), rgba(198,154,69,0.06));
    border: 1px solid rgba(198,154,69,0.25);
    border-left: 4px solid var(--bo-gold);
    border-radius: 10px;
    margin-bottom: 28px;
}

.bo-min-banner i {
    font-size: 1.3rem;
    color: var(--bo-gold);
    flex-shrink: 0;
}

.bo-min-banner p {
    font-size: 14px;
    font-weight: 600;
    color: var(--bo-ink);
    line-height: 1.4;
}

.bo-min-banner strong {
    color: var(--bo-green);
    font-weight: 700;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.bo-form-card {
    background: var(--bo-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--bo-line);
}

.bo-form-card h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.bo-form-lead {
    color: var(--bo-mute);
    font-size: 14px;
    margin-bottom: 28px;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.bo-form { display: flex; flex-direction: column; gap: 18px; }

.bo-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bo-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bo-ink);
    letter-spacing: 0.3px;
}

.bo-form-group label .bo-optional {
    color: var(--bo-mute);
    font-weight: 400;
    font-size: 11px;
}

.bo-field {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border: 1.5px solid var(--bo-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bo-ink);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.bo-field:focus {
    border-color: var(--bo-green);
    box-shadow: 0 0 0 3px rgba(15,61,46,0.08);
}

.bo-field::placeholder { color: #b0a999; }

.bo-field.error {
    border-color: var(--bo-danger);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.08);
}

.bo-field.success {
    border-color: var(--bo-success);
}

/* Select styling */
.bo-select-wrap {
    position: relative;
}

.bo-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bo-mute);
    pointer-events: none;
    font-size: 13px;
}

.bo-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

/* Row for side-by-side fields */
.bo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Error messages */
.bo-error-msg {
    font-size: 11px;
    color: var(--bo-danger);
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.bo-error-msg.show { display: flex; }

.bo-error-msg i { font-size: 10px; }

/* Textarea */
.bo-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Quantity field with unit */
.bo-qty-wrap {
    position: relative;
}

.bo-qty-wrap .bo-qty-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--bo-mute);
    pointer-events: none;
    background: rgba(245,235,221,0.8);
    padding: 4px 10px;
    border-radius: 6px;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.bo-submit-btn {
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bo-green), var(--bo-green-light));
    color: #fff;
    cursor: pointer;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.bo-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bo-gold), #d4a84e);
    opacity: 0;
    transition: opacity 0.35s;
}

.bo-submit-btn:hover::before { opacity: 1; }

.bo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,61,46,0.25);
}

.bo-submit-btn span,
.bo-submit-btn i { position: relative; z-index: 1; }

.bo-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Privacy note */
.bo-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--bo-mute);
    margin-top: 6px;
}

.bo-privacy i { color: var(--bo-gold); font-size: 11px; }


/* =========================================================
   SIDEBAR INFO
   ========================================================= */

.bo-sidebar {
    position: sticky;
    top: 100px;
}

.bo-info-card {
    background: var(--bo-green);
    border-radius: 16px;
    padding: 36px 28px;
    color: rgba(255,255,255,0.85);
}

.bo-info-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.bo-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bo-checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.bo-checks li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(198,154,69,0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.bo-checks li i {
    color: var(--bo-gold-light);
    font-size: 11px;
}

.bo-info-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 24px 0;
}

.bo-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bo-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.bo-contact-row i {
    color: var(--bo-gold-light);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.bo-contact-row a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.bo-contact-row a:hover { color: var(--bo-gold-light); }

/* Quick CTA */
.bo-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 20px;
}

.bo-wa-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--bo-gold);
}

.bo-wa-btn i { font-size: 16px; }


/* =========================================================
   CONFIRMATION MODAL
   ========================================================= */

.bo-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.bo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,30,24,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bo-modal {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.bo-modal-overlay.active .bo-modal {
    transform: scale(1) translateY(0);
}

.bo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--bo-line);
}

.bo-modal-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bo-modal-header h3 i {
    color: var(--bo-gold);
}

.bo-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--bo-line);
    background: transparent;
    color: var(--bo-mute);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
}

.bo-modal-close:hover {
    background: var(--bo-danger);
    border-color: var(--bo-danger);
    color: #fff;
}

/* Confirmation data table */
.bo-confirm-body {
    padding: 24px 28px;
}

.bo-ref-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(15,61,46,0.06), rgba(15,61,46,0.02));
    border: 1.5px dashed var(--bo-green);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--bo-mute);
}

.bo-ref-id strong {
    font-size: 18px;
    font-family: "DM Sans", sans-serif;
    color: var(--bo-green);
    letter-spacing: 1.5px;
}

.bo-confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.bo-confirm-table tr { border-bottom: 1px solid rgba(231,224,210,0.5); }
.bo-confirm-table tr:last-child { border-bottom: none; }

.bo-confirm-table td {
    padding: 10px 0;
    font-size: 13px;
    vertical-align: top;
}

.bo-confirm-table td:first-child {
    font-weight: 600;
    color: var(--bo-mute);
    width: 140px;
    padding-right: 16px;
}

.bo-confirm-table td:last-child {
    color: var(--bo-ink);
    font-weight: 500;
}

.bo-confirm-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 24px;
    border-top: 1px solid var(--bo-line);
}

.bo-btn-outline {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border: 1.5px solid var(--bo-line);
    border-radius: 10px;
    background: transparent;
    color: var(--bo-mute);
    cursor: pointer;
    transition: all 0.3s;
}

.bo-btn-outline:hover {
    border-color: var(--bo-danger);
    color: var(--bo-danger);
}

.bo-btn-confirm {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bo-green), var(--bo-green-light));
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bo-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15,61,46,0.25);
}


/* =========================================================
   THANK YOU POPUP
   ========================================================= */

.bo-thankyou-body {
    padding: 40px 28px;
    text-align: center;
}

.bo-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(39,174,96,0.1), rgba(39,174,96,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: boPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bo-success-icon i {
    font-size: 2rem;
    color: var(--bo-success);
}

@keyframes boPopIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.bo-thankyou-body h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.bo-thankyou-body > p {
    color: var(--bo-mute);
    font-size: 14px;
    margin-bottom: 20px;
}

.bo-thankyou-ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(15,61,46,0.06);
    border-radius: 8px;
    font-size: 13px;
    color: var(--bo-mute);
    margin-bottom: 24px;
}

.bo-thankyou-ref strong {
    color: var(--bo-green);
    font-size: 16px;
    letter-spacing: 1px;
}

/* Seller contact card */
.bo-seller-card {
    background: linear-gradient(135deg, var(--bo-green), #1a4a3d);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 20px;
    color: rgba(255,255,255,0.85);
}

.bo-seller-card p {
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bo-gold-light);
    font-weight: 600;
}

.bo-seller-card .bo-seller-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bo-seller-card .bo-seller-number i {
    color: var(--bo-gold-light);
}

.bo-seller-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.bo-seller-card a:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--bo-gold);
}

.bo-thankyou-close {
    margin-top: 24px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    background: var(--bo-card);
    color: var(--bo-green);
    cursor: pointer;
    transition: all 0.3s;
}

.bo-thankyou-close:hover {
    background: var(--bo-green);
    color: #fff;
}


/* =========================================================
   GST HELPER
   ========================================================= */

.bo-gst-format {
    font-size: 11px;
    color: var(--bo-mute);
    margin-top: 2px;
}

.bo-gst-format code {
    background: rgba(15,61,46,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.5px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .bo-main-grid {
        grid-template-columns: 1fr;
    }

    .bo-sidebar {
        position: static;
    }

    .bo-form-card {
        padding: 28px 20px;
    }
}

@media (max-width: 600px) {
    .bo-hero {
        padding: 90px 0 45px;
    }

    .bo-row {
        grid-template-columns: 1fr;
    }

    .bo-confirm-actions {
        flex-direction: column-reverse;
    }

    .bo-modal {
        width: 100%;
        border-radius: 12px;
    }
}
