
/* =========================================================
   MASEK HARDWARE - REQUEST A QUOTE PAGE
   NAVY BLUE + BLACK + WHITE BRANDING
========================================================= */

:root {
    --primary: #17365D;
    --primary-hover: #244D7E;
    --light-blue: #EAF1F8;
    --pale-blue: #F5F8FC;
    --black: #111111;
    --white: #FFFFFF;
    --text: #333333;
    --muted: #777777;
    --border: #D2D9E2;
    --error: #B42318;
    --error-bg: #FFF1F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #F5F6F8;
    color: var(--black);
    line-height: 1.6;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.quote-page {
    min-height: 100vh;
    background: #F5F6F8;
    padding: 28px 20px;
}

.quote-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--black);
}


/* =========================================================
   HEADER
========================================================= */

.quote-header {
    position: relative;
    background: var(--primary);
    padding: 18px 28px 22px;
    border-bottom: 3px solid var(--primary);
    text-align: center;
}

.quote-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--black);
}


/* =========================================================
   BACK LINK
========================================================= */

.back-link {
    position: absolute;
    left: 28px;
    top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #DCE8F6;
    transform: translateX(-3px);
}


/* =========================================================
   QUOTE HEADING
========================================================= */

.quote-heading {
    width: 100%;
    text-align: center;
    padding: 5px 80px 0;
}

.quote-heading h1 {
    color: var(--white);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 4px;
}

.quote-heading p {
    color: #E4EBF4;
    font-size: 13px;
    line-height: 1.4;
}

.quote-heading h1::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    background: var(--white);
    border-radius: 10px;
    margin: 8px auto 0;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.quote-content {
    padding: 30px;
    background: var(--white);
}


/* =========================================================
   TWO COLUMN LAYOUT
========================================================= */

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    gap: 30px;
    align-items: start;
}


/* =========================================================
   SECTION TITLES
========================================================= */

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-icon {
    width: 39px;
    height: 39px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 15px;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.section-title h2 {
    color: var(--black);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 1px;
    line-height: 1.3;
}

.section-title p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   SELECTED PRODUCT
========================================================= */

.selected-product {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    display: block;
    min-width: 0;
    padding: 15px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    position: relative;
}

.product-card::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 18px;
    bottom: 18px;
    width: 4px;
    background: var(--primary);
    border-radius: 0 5px 5px 0;
}


/* =========================================================
   PRODUCT IMAGE
   FLEXIBLE HEIGHT FOR DIFFERENT IMAGE PROPORTIONS
========================================================= */

.product-image {
    width: 100%;

    /* Do not force every product into a fixed-height box. */
    height: auto;
    min-height: 280px;

    padding: 0;
    margin: 0 0 15px;

    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 8px;

    /* Keep image edges inside the rounded border. */
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

/*
   Keep object-fit: cover as requested.
   Natural image proportions determine the displayed height.
*/

.product-image img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: none;

    object-fit: cover;
    object-position: center;

    flex: 0 0 auto;

    transition: transform 0.3s ease;
}

/* Subtle hover effect. */

.product-image:hover img {
    transform: scale(1.02);
}


/* =========================================================
   NO IMAGE PLACEHOLDER
========================================================= */

.no-image {
    width: 100%;
    min-height: 276px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--muted);
    font-size: 32px;
    background: var(--pale-blue);
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info {
    width: 100%;
    min-width: 0;
    padding-top: 0;
}

.product-label {
    display: inline-block;
    color: var(--white);
    background: var(--primary);
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}

.product-info h3 {
    color: var(--black);
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.product-info p {
    color: #444444;
    font-size: 13px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.product-info p strong {
    color: var(--black);
}


/* =========================================================
   AVAILABLE SIZES - LEFT SIDE
========================================================= */

.available-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 11px 12px;
    background: var(--light-blue);
    border: 1px solid var(--border);
    border-radius: 7px;
    margin-top: 10px;
}

.available-options > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.options-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
}

.option-item {
    display: block;
    width: 100%;
    padding: 6px 8px;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 5px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* =========================================================
   QUOTE FORM SECTION
========================================================= */

.quote-form-section {
    min-width: 0;
    border-left: 2px solid #E1E5EB;
    padding-left: 30px;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.quote-error {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 11px 13px;
    background: var(--error-bg);
    border: 1px solid #E5A5A0;
    border-radius: 7px;
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
}

.quote-error i {
    font-size: 16px;
    flex-shrink: 0;
}


/* =========================================================
   WELCOME MESSAGE
========================================================= */

.quote-welcome {
    color: #303B49;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 19px;
    background: var(--pale-blue);
    border: 1px solid #C9D7E8;
    padding: 11px 13px;
    border-radius: 7px;
}


/* =========================================================
   FORM GROUPS
========================================================= */

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.optional {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: var(--black);
    background: var(--white);
    border: 2px solid #CCCCCC;
    border-radius: 7px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select {
    height: 44px;
    padding: 0 13px;
}

.form-group textarea {
    padding: 11px 13px;
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #8494A8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 54, 93, 0.13);
    background: #FAFCFF;
}


/* =========================================================
   CUSTOM SIZE DROPDOWN
========================================================= */

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    height: 44px;
    padding: 0 42px 0 13px;
    background: var(--white);
    border: 2px solid #CCCCCC;
    border-radius: 7px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: var(--black);
    text-align: left;
    cursor: pointer;
    position: relative;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.custom-select-trigger:hover {
    border-color: var(--primary);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 54, 93, 0.13);
    background: #FAFCFF;
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.custom-select-trigger i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.custom-select.open .custom-select-trigger i {
    color: var(--primary);
    transform: translateY(-50%) rotate(180deg);
}


/* =========================================================
   SIZE OPTIONS CONTAINER
========================================================= */

.custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 7px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 9999;
}

.custom-select.open .custom-select-options {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   EACH SIZE OPTION
========================================================= */

.custom-option {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    background: var(--white);
    border: none;
    border-bottom: 1px solid #E5E9EF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    text-align: left;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: var(--light-blue);
    color: var(--primary);
}

.custom-option.selected {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}


/* =========================================================
   FIXED SIZE DISPLAY
========================================================= */

.fixed-size-display {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 13px;
    background: var(--light-blue);
    border: 2px solid #C9D7E8;
    border-radius: 7px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   NUMBER INPUT
========================================================= */

.number-input-wrapper {
    position: relative;
}

.number-input-wrapper input {
    width: 100%;
}


/* =========================================================
   FORM HELP TEXT
========================================================= */

.form-help {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   WHATSAPP NOTICE
========================================================= */

.whatsapp-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-top: 4px;
    margin-bottom: 17px;
    background: var(--light-blue);
    border: 1px solid #C9D7E8;
    border-radius: 8px;
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.whatsapp-notice div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whatsapp-notice strong {
    color: var(--primary);
    font-size: 13px;
}

.whatsapp-notice span {
    color: #333333;
    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.cancel-button,
.submit-button {
    min-height: 43px;
    border-radius: 30px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}


/* =========================================================
   CANCEL BUTTON
========================================================= */

.cancel-button {
    color: var(--white);
    background: var(--black);
    border: 2px solid var(--black);
}

.cancel-button:hover {
    background: #303030;
    border-color: #303030;
    color: var(--white);
    transform: translateY(-1px);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-button {
    color: var(--white);
    background: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.submit-button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.submit-button:active {
    transform: translateY(0);
}


/* =========================================================
   FOOTER
========================================================= */

.quote-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 18px;
    background: var(--black);
    border-top: 3px solid var(--primary);
    text-align: center;
}

.quote-footer i {
    color: #AFC5E2;
    font-size: 14px;
}

.quote-footer p {
    color: var(--white);
    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .quote-page {
        padding: 18px 12px;
    }

    .quote-container {
        border-width: 2px;
    }

    .quote-header {
        padding: 17px 20px 19px;
    }

    .back-link {
        left: 20px;
        top: 20px;
    }

    .quote-heading {
        padding-left: 65px;
        padding-right: 65px;
    }

    .quote-heading h1 {
        font-size: 23px;
    }

    .quote-heading p {
        font-size: 12px;
    }

    .quote-content {
        padding: 23px 20px;
    }

    .quote-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .quote-form-section {
        border-left: none;
        border-top: 2px solid #E1E5EB;
        padding-left: 0;
        padding-top: 23px;
    }

    .product-image {
        min-height: 260px;
    }

    .no-image {
        min-height: 256px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .quote-page {
        padding: 0;
        background: var(--white);
    }

    .quote-container {
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .quote-header {
        padding: 15px 17px 18px;
        border-bottom: 3px solid var(--primary);
    }

    .back-link {
        position: static;
        display: inline-flex;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .quote-heading {
        padding: 0;
    }

    .quote-heading h1 {
        font-size: 21px;
    }

    .quote-heading p {
        font-size: 12px;
    }

    .quote-heading h1::after {
        width: 45px;
        height: 3px;
    }

    .quote-content {
        padding: 21px 16px;
    }

    .section-title {
        gap: 9px;
    }

    .section-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 18px;
    }

    .section-title p {
        font-size: 11px;
    }

    .product-card {
        padding: 13px;
        border-width: 2px;
    }

    .product-image {
        min-height: 230px;
        margin-bottom: 13px;
    }

    .no-image {
        min-height: 226px;
    }

    .product-info h3 {
        font-size: 22px;
    }

    .product-info p {
        font-size: 13px;
    }

    .quote-form-section {
        padding-top: 21px;
    }

    .quote-welcome {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 13px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .cancel-button,
    .submit-button {
        width: 100%;
    }

    .whatsapp-notice {
        align-items: flex-start;
    }

    .quote-footer {
        padding: 14px 12px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .quote-header {
        padding: 13px 14px 16px;
    }

    .quote-content {
        padding: 20px 13px;
    }

    .quote-heading h1 {
        font-size: 20px;
    }

    .quote-heading p {
        font-size: 11px;
    }

    .product-image {
        min-height: 210px;
    }

    .no-image {
        min-height: 206px;
    }

    .product-info h3 {
        font-size: 21px;
    }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
