/* ==========================================================================
   RFQ PAGE STYLES
   Matches premium reference design
   ========================================================================== */

.ms-rfq-page {
    background-color: #fcf8f4;
    padding-bottom: 80px;
}

/* Enforce 1400px Container */
.ms-rfq-page .ms-container {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Hero Section */
.ms-rfq-hero {
    position: relative;
    padding: 180px 2rem 64px 2rem;
}
.ms-rfq-hero-bg {
    position: absolute;
    top: -20px; right: 0; 
    width: 50%;
    height: 700px;
    background: url('../images/ship-globe-bg.png') no-repeat right top / contain;
    opacity: 1;
    mix-blend-mode: normal;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%), linear-gradient(to bottom, black 20%, transparent 60%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, black 20%), linear-gradient(to bottom, black 20%, transparent 60%);
    mask-composite: intersect;
}
.ms-rfq-hero .ms-container {
    position: relative;
    z-index: 1;
}

/* Breadcrumbs (Custom) */
.ms-single-breadcrumbs {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 24px;
}
.ms-breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    text-transform: uppercase;
}
.ms-breadcrumb-link:first-child {
    color: #C7A24B;
}

.ms-rfq-title {
    font-size: 56px;
    font-family: var(--font-display);
    color: #102A1D;
    margin: 0 0 16px;
    font-weight: 600;
}
.ms-rfq-subtitle {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    max-width: 500px;
    margin: 0;
}

/* Layout */
.ms-rfq-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}
.ms-rfq-main-col {
    flex: 1;
    min-width: 0;
	margin-bottom: 45px;
}
.ms-rfq-sidebar-col {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Product Card (Dark) */
.ms-rfq-product-card {
    background: #523C1B;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 20px 40px rgba(82, 60, 27, 0.2);
    position: relative;
}
.ms-rfq-product-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    background-size: cover;
    background-position: left center;
    z-index: 1;
}
.ms-rfq-product-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(82,60,27,0) 0%, rgba(82,60,27,0.85) 45%, rgba(82,60,27,1) 65%);
}
.ms-rfq-product-details-col {
    flex: 1;
    padding: 24px 32px;
    color: #fff;
    position: relative;
    z-index: 2;
    margin-left: 35%;
}
.ms-rfq-badge {
    display: inline-block;
    background: #ce9847;
    color: #102A1D;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.ms-rfq-product-header h2 {
    font-size: 32px;
    font-family: var(--font-display);
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 500;
}
.ms-rfq-product-sub {
    font-size: 14px;
    color: #e5e7eb;
    margin: 0 0 16px 0;
    font-weight: 400;
}
.ms-rfq-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(206, 152, 71, 0.25);
    margin-bottom: 16px;
    margin-top: 12px;
    gap: 0 !important;
}
.ms-rfq-spec {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin: 0 !important;
    border-bottom: 1px solid rgba(206, 152, 71, 0.25);
}
.ms-rfq-spec:nth-child(odd) {
    border-right: 1px solid rgba(206, 152, 71, 0.25);
    padding-left: 0;
    padding-right: 20px;
}
.ms-rfq-spec:nth-child(even) {
    padding-right: 0;
    padding-left: 20px;
}
.ms-rfq-spec.ms-full {
    grid-column: 1 / 2;
}
.ms-rfq-spec-icon {
    color: #ce9847;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ms-rfq-spec-icon svg {
    stroke: #ce9847;
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}
.ms-rfq-spec-text {
    display: flex;
    flex-direction: column;
}
.ms-rfq-spec-label {
    font-size: 13px;
    color: #ce9847;
    margin-bottom: 4px;
    font-weight: 500;
}
.ms-rfq-spec-value {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}
.ms-rfq-product-desc {
    font-size: 14px;
    color: #e5e7eb;
    line-height: 1.6;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
}

/* Form Container */
.ms-rfq-form-container {
    background: #fcf8f4;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgb(69 64 64 / 10%);
}
.ms-rfq-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin: 40px 0;
}
.ms-rfq-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0px;
	
}
.ms-rfq-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C7A24B;
}
.ms-rfq-section-header h3 {
    font-size: 20px;
    color: #102A1D;
    margin: 0;
    font-weight: 600;
}

/* Form Grid */
.ms-rfq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px; /* Increased vertical gap */
}
.ms-rfq-inquiry-grid {
    grid-template-columns: 1fr 1fr;
}
.ms-form-group.ms-full-width {
    grid-column: 1 / -1;
}
.ms-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #102A1D;
    margin-bottom: 8px;
}
.ms-form-group label span {
    color: #C7A24B;
}
.ms-input-icon-wrapper,
.ms-textarea-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px; /* More rounded */
    transition: border-color 0.3s;
}
.ms-input-icon-wrapper:focus-within,
.ms-textarea-wrapper:focus-within {
    border-color: #102A1D;
}
.ms-input-icon-wrapper svg {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.ms-input-icon-wrapper input,
.ms-input-icon-wrapper select,
.ms-textarea-wrapper textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 16px 14px 48px;
    font-size: 14px;
    color: #102A1D;
    font-family: inherit;
}
.ms-input-icon-wrapper input:focus,
.ms-input-icon-wrapper select:focus,
.ms-textarea-wrapper textarea:focus {
    outline: none;
}
.ms-input-icon-wrapper input::placeholder,
.ms-textarea-wrapper textarea::placeholder {
    color: #9ca3af;
}

/* Curved Luxury Floating Select Options (Matches Contact Page) */
.ms-rfq-form-container .ms-select-wrapper {
    position: relative;
    cursor: pointer;
}

.ms-rfq-form-container .ms-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    cursor: pointer;
}

.ms-rfq-form-container .ms-select-wrapper svg.icon-right {
    left: auto;
    right: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.ms-rfq-form-container .ms-select-wrapper.is-open svg.icon-right {
    transform: rotate(180deg);
    color: #C79A5B;
}

.ms-custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(199, 154, 91, 0.35);
    box-shadow: 0 16px 36px rgba(16, 42, 29, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    max-height: 420px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0;
}

.ms-rfq-form-container .ms-select-wrapper.is-open .ms-custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ms-custom-option {
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14px;
    color: #102A1D;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ms-custom-option:hover {
    background: rgba(199, 154, 91, 0.08);
    color: #C79A5B;
}

.ms-custom-option.is-selected {
    background: rgba(199, 154, 91, 0.12);
    color: #C79A5B;
    font-weight: 600;
}

/* Readonly Input */
.ms-readonly-input {
    background-color: #f9fafb;
}
.ms-readonly-input input {
    color: #4b5563;
    cursor: default;
}
.ms-readonly-input svg.icon-right {
    left: auto;
    right: 16px;
    color: #C7A24B;
}

/* Textarea */
.ms-textarea-wrapper {
    align-items: flex-start;
}
.ms-textarea-wrapper svg.textarea-icon {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #9ca3af;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Dynamic Add More Products Section */
.ms-add-products-wrapper {
    margin-bottom: 40px;
}
.ms-add-products-header {
    margin-bottom: 24px;
}
.ms-add-products-title {
    font-size: 28px;
    font-weight: 700;
    color: #102A1D;
    margin: 0 0 4px 0;
}
.ms-add-products-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* Category Block / Card */
.ms-category-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}
.ms-category-card:last-child {
    margin-bottom: 0;
}

/* Top Section Layout (Category/Product Search & Selected Category) */
.ms-cat-top-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 10px;
}
.ms-cat-search-col {
    width: 65%;
}
.ms-cat-selected-col {
    width: 35%;
}

/* Bottom Section Layout (Checkboxes & Selected Products Table) */
.ms-cat-bottom-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}
.ms-prod-checkbox-col {
    width: 35%;
    display: flex;
    flex-direction: column;
}
.ms-prod-table-col {
    width: 65%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .ms-cat-top-section,
    .ms-cat-bottom-section {
        flex-direction: column;
        gap: 20px;
    }
    .ms-cat-search-col,
    .ms-cat-selected-col,
    .ms-prod-checkbox-col,
    .ms-prod-table-col {
        width: 100%;
    }
}

.ms-card-divider {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    justify-content: center;
}
.ms-add-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid #16a34a;
    border-radius: 8px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ms-add-cat-btn:hover {
    background: #f0fdf4;
}

/* Custom Dropdown */
.ms-custom-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    height: 56px;
    background: #ffffff;
    padding: 0 16px;
    transition: border-color 0.3s;
}
.ms-custom-dropdown.active {
    border-color: #102A1D;
}
.ms-custom-dropdown .search-icon {
    color: #9ca3af;
    margin-right: 12px;
    flex-shrink: 0;
}
.ms-custom-dropdown input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
    height: 100%;
    outline: none;
}
.ms-custom-dropdown .arrow-icon {
    color: #9ca3af;
    margin-left: 12px;
    cursor: pointer;
    flex-shrink: 0;
}
.ms-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}
.ms-custom-dropdown.active .ms-dropdown-menu {
    display: block;
}
.ms-dropdown-item {
    padding: 12px 16px;
    font-size: 15px;
    color: #111827;
    cursor: pointer;
    transition: background 0.2s;
}
.ms-dropdown-item:hover {
    background: #f9fafb;
}

/* Products List */
.ms-product-group {
    margin-top: 24px;
    transition: opacity 0.3s;
}
.ms-product-checkbox-list {
    margin-top: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    flex: 1;
    height: auto;
    max-height: none;
    overflow: visible;
}
.ms-product-checkbox-list.has-scroll {
    max-height: 500px;
    overflow-y: auto;
}
.ms-product-checkbox-list:empty {
    border: none;
}
.ms-prod-checkbox-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    height: 50px !important;
    padding: 0 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.ms-prod-checkbox-row:last-child {
    border-bottom: none;
}
.ms-prod-checkbox-row:hover {
    background: #fcfaf6;
}
.ms-checkbox.selected {
    /* No background change */
}
.ms-checkbox {
    position: relative !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
.ms-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.ms-checkbox-box {
    position: absolute;
    inset: 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ms-checkbox-box svg {
    opacity: 0;
}
.ms-checkbox input:checked + .ms-checkbox-box {
    background: #16a34a;
    border-color: #16a34a;
}
.ms-checkbox input:checked + .ms-checkbox-box svg {
    opacity: 1;
}
.ms-prod-name {
    font-size: 15px !important;
    color: #374151 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

/* Selected Category Card */
.ms-selected-cat-card {
    background: #c7a24b0d;
    border: 1.5px solid #ce9847;
    border-radius: 12px;
    padding: 16px 44px 16px 18px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ms-delete-cat-btn {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #ef4444 !important;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    padding: 0 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    z-index: 10;
    box-shadow: none !important;
}
.ms-delete-cat-btn:hover {
    background: transparent !important;
    color: #dc2626 !important;
    border: none !important;
    transform: translateY(-50%) scale(1.15) !important;
}
.ms-delete-cat-btn svg {
    stroke: currentColor !important;
    width: 16px !important;
    height: 16px !important;
}
.ms-cat-card-label {
    font-size: 12px;
    color: #000;
    font-weight: 600;
    margin-bottom: 4px;
}
.ms-cat-card-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 16px;
}
.ms-cat-card-value svg {
    color: #ce9847;
}

/* Selected Products Table */
.ms-selected-products-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: visible;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ms-table-header {
    background: #f9fafb;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}
.ms-table-labels {
    display: flex;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}
.ms-table-labels .label-name { flex: 1; }
.ms-table-labels .label-qty { width: 140px; }

.ms-table-rows {
    background: #ffffff;
    flex: 1;
    overflow: visible;
}
.ms-table-row {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.ms-table-row:last-child {
    border-bottom: none;
}
.ms-row-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}
.ms-row-qty {
    width: 110px;
}
.ms-qty-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    height: 40px;
    width: 90px;
    overflow: hidden;
}
.ms-qty-input-wrapper input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
    text-align: center;
}
.ms-qty-unit {
    background: #f3f4f6;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    border-left: 1px solid #d1d5db;
}
.ms-row-delete {
    width: 30px;
    display: flex;
    justify-content: flex-end;
}
.ms-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.ms-delete-btn:hover {
    opacity: 0.7;
}

/* Card Divider inside card */
.ms-card-divider {
    position: relative;
    margin-top: 20px;
    text-align: center;
}
.ms-card-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px dashed #d1d5db;
    z-index: 1;
}
.ms-add-cat-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 32px;
    background: #ffffff;
    border: 1px solid #ce9847;
    color: #ce9847;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.ms-add-cat-btn:hover {
    background: #c7a24b0d;
}

/* File Dropzone */
.ms-file-dropzone {
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
}
.ms-file-dropzone:hover,
.ms-file-dropzone.dragover {
    border-color: #C7A24B;
    background: #fffdf5;
}
.ms-drop-text {
    font-size: 14px;
    color: #4b5563;
}
.ms-browse-link {
    color: #C7A24B;
    font-weight: 600;
}
.ms-file-hint {
    font-size: 12px;
    color: #9ca3af;
}
.ms-hidden-input {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.ms-file-preview {
    font-size: 14px;
    color: #102A1D;
    font-weight: 600;
    display: none;
}

/* Submit Button & Secure Note */
.ms-rfq-submit-btn {
    width: 100%;
    background: #ce9847;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    transition: background 0.3s, transform 0.3s;
}
.ms-rfq-submit-btn:hover {
    background: #b5853e;
    transform: translateY(-2px);
}
.ms-rfq-submit-btn svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}
.ms-rfq-secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
}
.ms-rfq-secure-note svg {
    width: 14px;
    height: 14px;
    color: #C7A24B;
}

/* Sidebar Widgets */
.ms-rfq-sidebar-widget {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.ms-widget-title {
    font-size: 18px;
    font-family: var(--font-display);
    color: #102A1D;
    margin: 0 0 24px 0;
    font-weight: 600;
}
.ms-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ms-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.ms-why-icon {
    width: 40px;
    height: 40px;
    background: #ce9847;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}
.ms-why-icon svg {
    width: 20px;
    height: 20px;
}
.ms-why-text {
    display: flex;
    flex-direction: column;
}
.ms-why-text strong {
    font-size: 14px;
    color: #102A1D;
    margin-bottom: 4px;
}
.ms-why-text span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.ms-help-widget {
    background: #ce9847;
    color: #fff;
    padding: 32px 24px;
}
.ms-help-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.ms-help-header svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.ms-help-text strong {
    display: block;
    font-size: 16px;
    font-family: var(--font-display);
    margin-bottom: 6px;
    color: #fff;
}
.ms-help-text span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}
.ms-help-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}
.ms-help-btn:hover {
    background: #ffffff;
    color: #ce9847;
}

/* Footer Features */
.ms-rfq-footer-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 140px; /* Increased gap */
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    overflow: hidden;
    width: 100%;
}
.ms-rfq-footer-card {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(0,0,0,0.05);
}
.ms-rfq-footer-card:last-child {
    border-right: none;
}
.ms-footer-icon {
    width: 48px;
    height: 48px;
    background: #ce9847;
    color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ms-footer-icon svg {
    width: 24px;
    height: 24px;
}
.ms-footer-text h4 {
    font-size: 14px;
    color: #102A1D;
    margin: 0 0 4px 0;
    font-weight: 700;
}
.ms-footer-text p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}
/* Custom Dropdown Styling inside Dynamic Table Rows */
.ms-row-variants {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    width: 100%;
}
.ms-row-variant-select {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    height: 42px !important;
    flex: 1;
    min-width: 150px;
    max-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ms-row-variant-select:focus-within {
    border-color: #ce9847 !important;
    box-shadow: 0 0 0 2px rgba(206, 152, 71, 0.15) !important;
}

/* Custom Dropdown select overrides to style popup list options */
.ms-input-icon-wrapper.ms-select-wrapper {
    min-height: 52px;
}
.ms-rfq-form-container .ms-select-wrapper select {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 48px;
    opacity: 1 !important;
}
.ms-custom-select-wrapper {
    position: relative;
    width: 100%;
	padding: 10px;
}
.ms-custom-select-wrapper svg.icon-right {
    display: block !important;
    pointer-events: none !important;
}
.ms-custom-select-trigger {
    border: none;
    background: transparent;
    padding: 0 16px;
    width: 100%;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
    color: #102A1D;
    justify-content: space-between;
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    height: 100%;
    flex: 1;
}
.ms-select-wrapper .ms-custom-select-trigger {
    padding-left: 48px;
    padding-right: 16px;
}
.ms-row-variant-select .ms-custom-select-trigger {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
.ms-custom-select-icon {
    display: none !important;
}
.ms-custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(199, 162, 75, 0.35);
    box-shadow: 0 16px 36px rgba(16, 42, 29, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    max-height: 280px;
    padding: 8px 6px !important;
}
.ms-custom-select-wrapper.open .ms-custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ms-custom-option {
    padding: 10px 16px !important;
    margin: 2px 4px !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 500;
    color: #102A1D;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left !important;
    display: block !important;
    justify-content: flex-start !important;
    width: auto !important;
}
.ms-custom-option::before {
    display: none !important;
    content: none !important;
}
.ms-custom-option:hover {
    background: rgba(199, 162, 75, 0.08) !important;
    color: #ce9847 !important;
}
.ms-custom-option.selected,
.ms-custom-option.is-selected {
    background: rgba(199, 162, 75, 0.12) !important;
    color: #ce9847 !important;
    font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .ms-rfq-layout {
        flex-direction: column;
    }
    .ms-rfq-sidebar-col {
        width: 100%;
        flex-direction: row;
    }
    .ms-why-widget, .ms-help-widget {
        flex: 1;
    }
    .ms-rfq-footer-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .ms-rfq-footer-card:nth-child(2) {
        border-right: none;
    }
    .ms-rfq-footer-card:nth-child(1),
    .ms-rfq-footer-card:nth-child(2) {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
	.ms-rfq-main-col {
    width: 100%;
}
}
@media (max-width: 768px) {
    .ms-rfq-product-card {
        flex-direction: column;
    }
    .ms-rfq-product-img-col {
        width: 100%;
        height: 250px;
    }
    .ms-rfq-product-grid {
        grid-template-columns: 1fr;
    }
    .ms-rfq-form-grid {
        grid-template-columns: 1fr;
    }
    .ms-rfq-inquiry-grid {
        grid-template-columns: 1fr;
    }
    .ms-rfq-sidebar-col {
        flex-direction: column;
    }
	.ms-rfq-title {
    line-height: 4rem;
}
}
@media (max-width: 575px) {
    .ms-rfq-footer-features {
        grid-template-columns: 1fr;
    }
}

/* Custom Submission Modal Overlay */
.ms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 42, 29, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.ms-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.ms-success-modal {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.ms-modal-overlay.active .ms-success-modal {
    transform: translateY(0);
}
.ms-modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(199, 162, 75, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: #ce9847;
}
.ms-modal-icon-wrapper svg {
    width: 40px;
    height: 40px;
}
.ms-modal-title {
    font-family: var(--font-display, inherit);
    font-size: 24px;
    font-weight: 700;
    color: #102A1D;
    margin-bottom: 12px;
}
.ms-modal-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 30px;
}
.ms-modal-close-btn {
    background: #ce9847;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.ms-modal-close-btn:hover {
    background: #b5833b;
}
