/* NCM Quote - Product Options, Manual Offer & GST Calculator Styles */

/* ================================
   OPTION GROUPS
================================ */

.ncmq-options {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ncmq-option-group {
    margin-bottom: 15px;
}

.ncmq-option-group:last-child {
    margin-bottom: 0;
}

.ncmq-option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.ncmq-option-group label .required {
    color: #d00;
}

.ncmq-option-select {
    width: 100%;
    padding: 10px 30px 10px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23333333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.ncmq-option-select:focus {
    outline: none;
    border-color: #666;
}


/* ================================
   PRICE DISPLAY
================================ */

#ncmq-price-container {
    margin: 20px 0;
}

.ncmq-price-box {
    padding: 15px;
    background: #fff;
    border: 1px solid #333;
    border-radius: 4px;
}

.ncmq-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    font-size: 15px;
}

.ncmq-price-row:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.ncmq-price-label {
    font-weight: 500;
    color: #555;
}

.ncmq-price-value {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}


/* ================================
   NORMAL FINAL PRICE
================================ */

.ncmq-price-total {
    margin-top: 5px;
    padding-top: 12px !important;
    border-top: 2px solid #333 !important;
    border-bottom: 0 !important;
    font-size: 17px;
}

.ncmq-price-total .ncmq-price-label {
    color: #000;
    font-weight: 700;
}

.ncmq-price-total .ncmq-price-value {
    color: #000;
    font-size: 20px;
    font-weight: 700;
}


/* ================================
   MANUAL OFFER
================================ */

/*
 * New manual offer class:
 * .ncmq-price-offer
 *
 * .ncmq-price-deposit is kept so older markup
 * will continue working.
 */

.ncmq-price-offer,
.ncmq-price-deposit {
    margin-top: 5px;
}

.ncmq-price-offer .ncmq-price-label,
.ncmq-price-deposit .ncmq-price-label {
    color: #555;
    font-weight: 500;
}

.ncmq-price-offer .ncmq-price-value,
.ncmq-price-deposit .ncmq-price-value {
    color: #555;
    font-weight: 700;
}


/* Final price after manual offer */

.ncmq-price-balance {
    margin-top: 5px;
    padding-top: 12px !important;
    border-top: 2px solid #333 !important;
    border-bottom: 0 !important;
}

.ncmq-price-balance .ncmq-price-label {
    color: #000;
    font-weight: 700;
}

.ncmq-price-balance .ncmq-price-value {
    color: #000;
    font-size: 20px;
    font-weight: 700;
}


/* ================================
   QUOTE BUTTON
================================ */

.ncmq-button-wrapper {
    margin: 20px 0;
}

#ncmq-get-quote-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    background: #0071a1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition:
        background 0.3s ease,
        filter 0.3s ease;
}

#ncmq-get-quote-btn:hover {
    background: #005177;
}


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

.ncmq-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.ncmq-modal-content {
    position: relative;
    background-color: #fff;
    margin: 3% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: ncmqSlideIn 0.3s ease-out;
}

@keyframes ncmqSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ncmq-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ncmq-modal-close:hover,
.ncmq-modal-close:focus {
    color: #000;
}

.ncmq-modal-content h2 {
    margin: 0 0 20px 0;
    padding-right: 40px;
    font-size: 24px;
    color: #333;
}

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


/* ================================
   QUOTE SUMMARY
================================ */

.ncmq-quote-summary {
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid #0071a1;
}

.ncmq-summary-section h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.ncmq-summary-options {
    margin: 10px 0;
}

.ncmq-summary-options strong {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.ncmq-summary-options ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.ncmq-summary-options li {
    margin: 3px 0;
    font-size: 14px;
    color: #555;
}

.ncmq-option-price {
    color: #0071a1;
    font-weight: 600;
}

.ncmq-summary-pricing {
    margin-top: 12px;
}

.ncmq-summary-pricing table {
    width: 100%;
    border-collapse: collapse;
}

.ncmq-summary-pricing td {
    padding: 5px 0;
    font-size: 14px;
}

.ncmq-summary-pricing td:last-child {
    text-align: right;
}

.ncmq-summary-pricing .total-row td {
    padding-top: 8px;
    border-top: 2px solid #333;
    font-size: 16px;
}


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

#ncmq-quote-form {
    margin-top: 20px;
}

.ncmq-form-row {
    margin-bottom: 15px;
}

.ncmq-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.ncmq-form-row label .required {
    color: #d00;
}

.ncmq-form-row input[type="text"],
.ncmq-form-row input[type="email"],
.ncmq-form-row input[type="tel"],
.ncmq-form-row input[type="number"],
.ncmq-form-row textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.ncmq-form-row select {
    width: 100%;
    padding: 10px 30px 10px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23333333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.ncmq-form-row input:focus,
.ncmq-form-row select:focus,
.ncmq-form-row textarea:focus {
    outline: none;
    border-color: #0071a1;
    box-shadow: 0 0 0 1px #0071a1;
}

.ncmq-form-row textarea {
    resize: vertical;
    min-height: 80px;
}


/* ================================
   FORM ACTIONS
================================ */

.ncmq-form-actions {
    margin-top: 20px;
}

.ncmq-submit-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    background: #0071a1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ncmq-submit-btn:hover:not(:disabled) {
    background: #005177;
}

.ncmq-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}


/* ================================
   FORM MESSAGE
================================ */

.ncmq-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
    animation: ncmqFadeIn 0.3s ease;
}

@keyframes ncmqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ncmq-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ncmq-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ================================
   DISABLED OPTION GROUP
================================ */

.ncmq-disabled-group {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}


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

@media (max-width: 768px) {

    .ncmq-options {
        padding: 15px;
    }

    .ncmq-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }

    .ncmq-modal-content h2 {
        font-size: 20px;
    }

    .ncmq-price-total .ncmq-price-value,
    .ncmq-price-balance .ncmq-price-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .ncmq-modal-content {
        width: 96%;
        margin: 2% auto;
        padding: 15px;
    }

    .ncmq-modal-close {
        right: 10px;
        top: 10px;
        font-size: 28px;
    }

    .ncmq-price-row {
        font-size: 14px;
        gap: 10px;
    }

    .ncmq-price-label {
        flex: 1;
    }

    .ncmq-price-value {
        flex-shrink: 0;
    }

    .ncmq-price-total .ncmq-price-value,
    .ncmq-price-balance .ncmq-price-value {
        font-size: 17px;
    }
}