/* Container changes */
.rfq-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 43px;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* Page Header Styles Configuration */
body.woocommerce-cart .site-header,
body.woocommerce-checkout .site-header {
    position: relative !important;
    background: #fff !important;
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    top: 0;
}

body.woocommerce-cart .main-navigation a,
body.woocommerce-checkout .main-navigation a,
body.woocommerce-cart .header-actions i,
body.woocommerce-checkout .header-actions i,
body.woocommerce-cart .search-submit i,
body.woocommerce-checkout .search-submit i {
    color: #000 !important;
}

body.woocommerce-cart .search-submit,
body.woocommerce-checkout .search-submit {
    color: #bbb !important;
    right: 10px;
}

body.woocommerce-cart .main-navigation a:hover,
body.woocommerce-checkout .main-navigation a:hover {
    color: var(--primary-gold, #c38f26) !important;
}

/* Header Search Box Style - Specific to Cart/Checkout Page */
body.woocommerce-cart .header-search .search-field,
body.woocommerce-checkout .header-search .search-field {
    border: 1px solid #eee !important;
    background: #fff !important;
    color: #333 !important;
    border-radius: 4px;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s;
}

body.woocommerce-cart .header-search .search-field:focus,
body.woocommerce-checkout .header-search .search-field:focus {
    border-color: #ddd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.woocommerce-cart .header-search .search-field::placeholder,
body.woocommerce-checkout .header-search .search-field::placeholder {
    color: #bbb !important;
    font-weight: 400;
}

/* Adjust page wrapper */
.rfq-page-wrapper {
    padding: 0 0 100px 0;
}

/* Breadcrumb */
.rfq-breadcrumb {
    font-size: 14px;
    color: #000000;
    font-weight: 400;
    margin-bottom: 30px;
    margin-top: 20px;
}

.rfq-breadcrumb a {
    color: #000000;
    text-decoration: none;
}

.gt-symbol {
    color: #C38F26;
}

/* Two Column Layout */
.rfq-grid {
    display: grid;
    grid-template-columns: 10fr 7.5fr;
    gap: 30px;
    align-items: start;
}

/* Left Column: Cart Items */
.rfq-cart-items-container {
    background: #F6F8F8;
    gap: 24px;
    border-radius: 6px;
    padding: 24px;
    border: 1px solid #F5F5F5;
}

.rfq-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.rfq-cart-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #2A3234;
    margin: 0;
}

.rfq-cart-count {
    font-size: 26px;
    font-weight: 600;
    color: #2A3234;
}

.rfq-cart-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rfq-cart-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.rfq-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rfq-item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.rfq-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rfq-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rfq-item-title {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    color: #2A3234;
    text-decoration: none;
    margin: 0;
}

.remove-item-btn {
    color: #292929;
    font-size: 20px;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
}

.remove-item-btn:hover {
    color: #ff4d4d;
}

.rfq-item-category {
    font-size: 16px;
    color: #515151;
    line-height: 1.4;
    margin: 5px 0 15px 0;
}

.rfq-item-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #777;
    border-radius: 6px;
    width: max-content;
    height: 35px;
}

.qty-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #333;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 500;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #2A3234;
    -moz-appearance: textfield;
    appearance: textfield;
    font-family: 'Montserrat', sans-serif;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Right Column: Form Container */
.rfq-form-container {
    background: #fff;
    padding: 27px 20px;
    border-radius: 10px;
    gap: 40px;
    box-shadow: 0px 4px 22px rgba(0, 0, 0, 0.06);
    /* very soft shadow per design */
    height: fit-content;
}

.rfq-form-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 25px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-field {
    width: 100%;
    padding: 10px 10px 10px 20px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    font-size: 14px;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    box-sizing: border-box;
}

.form-field::placeholder {
    color: #808080;
}

.form-field:focus {
    border-color: #c38f26;
    /* primary gold */
}

/* Phone Group */
.phone-group {
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    position: relative;
    background: #fff;
    /* Removed overflow: hidden to allow dropdown to show */
}

.phone-group:focus-within {
    border-color: #c38f26;
}

.phone-group .iti {
    width: 100%;
}

.phone-group .phone-field {
    border: none !important;
    border-radius: 0;
    /* Only override top, right, bottom padding to prevent overriding dynamic left padding for dial code */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-right: 10px !important;
    width: 100%;
    outline: none;
    box-shadow: none;
}

/* Hide country flag but keep the dropdown and dial code */
.phone-group .iti__flag,
.phone-group .iti-flag {
    display: none !important;
}

.phone-group .iti__selected-flag,
.phone-group .selected-flag {
    background-color: transparent !important;
}

textarea.form-field {
    resize: vertical;
    min-height: 120px;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
    cursor: pointer;
}

.file-upload-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 14px;
    line-height: 1;
}

.upload-left i {
    font-size: 18px;
    color: #aeb6bf;
    /* A light blueish-grey for the icon */
}

.browse-files-btn {
    padding: 8px 15px;
    border: 1px solid #c38f26;
    color: #c38f26;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Submit Button */
.submit-rfq-btn {
    width: 100%;
    padding: 16px;
    background: #c38f26;
    /* Gold color */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s;
}

.submit-rfq-btn:hover {
    background: #b07e1e;
    /* darker gold */
}

/* Empty Cart Styles */
.rfq-empty-cart-container {
    text-align: center;
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.rfq-empty-cart-container .empty-icon i {
    font-size: 60px;
    color: #e5e5e5;
    margin-bottom: 20px;
}

.rfq-empty-cart-container .empty-title h1,
.rfq-empty-cart-container .empty-title h2,
.rfq-empty-cart-container .empty-title h3 {
    font-family: var(--font-heading, 'Quattrocento', serif);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #000000;
    line-height: 1.3;
}

.rfq-empty-cart-container .empty-text,
.rfq-empty-cart-container .empty-text p,
.rfq-empty-cart-container .empty-text div,
.rfq-empty-cart-container .empty-text span {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #808080;
    line-height: 1.3;
    margin-bottom: 40px;
}

.rfq-empty-cart-container .gmc-btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    border: none;
}

.rfq-empty-cart-container .gmc-btn-primary:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* Hide default WooCommerce message if present */
.woocommerce-info.cart-empty {
    display: none;
}

/* Success Message Area */
.rfq-success-message {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    color: #808080;
}

.rfq-success-message .success-icon {
    width: 100px;
    height: 100px;
    background-color: #C38F26;
    /* theme gold */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 35px auto;
}

.rfq-success-message h1,
.rfq-success-message h2,
.rfq-success-message h3 {
    font-family: var(--font-heading, 'Quattrocento', serif);
    font-size: 48px;
    color: #000000;
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 400;
}

.rfq-success-message p,
.rfq-success-message div,
.rfq-success-message span {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #808080;
    line-height: 1.3;
    margin-bottom: 45px;
}

.rfq-success-message .back-home-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #C38F26;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.3s;
}

.rfq-success-message .back-home-btn:hover {
    background-color: #A6791E;
}

/* Responsive */
@media (max-width: 992px) {
    .rfq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rfq-container {
        padding: 0 20px;
    }

    .rfq-cart-items-container {
        padding: 20px;
    }

    .rfq-cart-item {
        flex-direction: row;
        gap: 15px;
    }

    .rfq-item-image img {
        width: 90px;
        height: 90px;
    }

    .rfq-item-title {
        font-size: 16px;
    }

    .rfq-cart-header h2 {
        font-size: 20px;
    }

    .rfq-cart-coun {
        font-size: 20px;
    }

    .rfq-item-category {
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    .container,
    .rfq-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .rfq-empty-cart-container .gmc-btn-primary {
        font-size: 16px;
    }

    .rfq-empty-cart-container .empty-text,
    .rfq-empty-cart-container .empty-text p,
    .rfq-empty-cart-container .empty-text div,
    .rfq-empty-cart-container .empty-text span {
        font-size: 14px;
    }

    .rfq-empty-cart-container .empty-title h1,
    .rfq-empty-cart-container .empty-title h2,
    .rfq-empty-cart-container .empty-title h3 {
        font-size: 30px;
    }

    #upload-file-name {
        max-width: 103px;
        width: 100%;
    }

    .rfq-success-message h1,
    .rfq-success-message h2,
    .rfq-success-message h3 {
        font-size: 30px;
    }

    .rfq-success-message p,
    .rfq-success-message div,
    .rfq-success-message span {
        font-size: 14px;
    }

    .rfq-success-message .back-home-btn {
        font-size: 14px;
    }

    .rfq-cart-count {
        font-size: 20px;
    }

    .rfq-breadcrumb {
        margin-top: 10px;
    }
}

.intl-tel-input .country-list .country-name {
    color: #000;
    padding-left: 10px;
}

.intl-tel-input.separate-dial-code .selected-dial-code {
    color: #000;
    padding-left: 10px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input,
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input[type=tel],
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input[type=text] {
    border-radius: 6px;
}

.intl-tel-input input,
.intl-tel-input input[type=tel],
.intl-tel-input input[type=text] {
    border-radius: 6px;
}