/**
 * New Kitchen Tops — Product Configurator Styles
 * Premium, clean UI for the countertop configuration flow
 */

/* ============================================
   CONFIGURATOR CONTAINER
   ============================================ */
.nkt-configurator {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.nkt-config-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid #e5e3dc;
}

.nkt-config-section:last-of-type {
    border-bottom: none;
}

.nkt-config-section__header {
    margin-bottom: 1.5rem;
}

.nkt-config-step {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #c9b99a;
    margin-bottom: 0.5rem;
}

.nkt-config-section__header h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.nkt-config-section__header p {
    font-size: 0.9rem;
    color: #9e9a8f;
    margin: 0;
}

/* ============================================
   COLOUR SWATCHES
   ============================================ */
.nkt-colour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.nkt-colour-swatch {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
}

.nkt-colour-swatch:hover {
    transform: translateY(-2px);
}

.nkt-colour-swatch input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nkt-colour-swatch__preview {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nkt-colour-swatch input:checked + .nkt-colour-swatch__preview {
    border-color: #c9b99a;
    box-shadow: 0 4px 16px rgba(201, 185, 154, 0.3);
}

.nkt-colour-swatch__label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b6860;
}

.nkt-colour-swatch input:checked ~ .nkt-colour-swatch__label {
    color: #1a1a1a;
    font-weight: 600;
}

/* ============================================
   WIDTH OPTIONS
   ============================================ */
.nkt-width-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.nkt-width-option {
    cursor: pointer;
}

.nkt-width-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nkt-width-option__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    border: 2px solid #e5e3dc;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
}

.nkt-width-option:hover .nkt-width-option__inner {
    border-color: #c9b99a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.nkt-width-option input:checked + .nkt-width-option__inner {
    border-color: #1a1a1a;
    background: #1a1a1a;
}

.nkt-width-option__size {
    font-size: 2rem;
    font-weight: 200;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.nkt-width-option input:checked + .nkt-width-option__inner .nkt-width-option__size {
    color: #fff;
}

.nkt-width-option__price {
    font-size: 1rem;
    font-weight: 500;
    color: #c9b99a;
    margin-bottom: 0.25rem;
}

.nkt-width-option__price small {
    font-weight: 300;
    font-size: 0.8rem;
}

.nkt-width-option input:checked + .nkt-width-option__inner .nkt-width-option__price {
    color: #c9b99a;
}

.nkt-width-option__desc {
    font-size: 0.75rem;
    color: #9e9a8f;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nkt-width-option input:checked + .nkt-width-option__inner .nkt-width-option__desc {
    color: rgba(255,255,255,0.5);
}

/* ============================================
   LENGTH INPUT
   ============================================ */
.nkt-length-input-wrapper {
    max-width: 400px;
}

.nkt-length-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e5e3dc;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.nkt-length-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: #1a1a1a;
    background: #f8f7f4;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.nkt-length-btn:hover {
    background: #e5e3dc;
}

.nkt-length-btn:active {
    background: #ccc9be;
}

.nkt-length-input {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 0;
    -moz-appearance: textfield;
    min-width: 0;
}

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

.nkt-length-unit {
    font-size: 0.85rem;
    color: #9e9a8f;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 0.5rem;
    white-space: nowrap;
}

.nkt-length-hint {
    font-size: 0.8rem;
    color: #9e9a8f;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ============================================
   POLISH OPTIONS
   ============================================ */
.nkt-polish-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.nkt-polish-option {
    cursor: pointer;
}

.nkt-polish-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nkt-polish-option__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 2px solid #e5e3dc;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #fff;
}

.nkt-polish-option:hover .nkt-polish-option__inner {
    border-color: #c9b99a;
}

.nkt-polish-option input:checked + .nkt-polish-option__inner {
    border-color: #1a1a1a;
    background: #faf9f6;
}

.nkt-polish-option__label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a1a1a;
}

.nkt-polish-option__price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9b99a;
}

.nkt-polish-option input:checked + .nkt-polish-option__inner .nkt-polish-option__price {
    color: #1a1a1a;
}

/* ============================================
   INSTALLATION OPTIONS
   ============================================ */
.nkt-install-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.nkt-install-option {
    cursor: pointer;
}

.nkt-install-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nkt-install-option__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 2px solid #e5e3dc;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #fff;
}

.nkt-install-option:hover .nkt-install-option__inner {
    border-color: #c9b99a;
}

.nkt-install-option input:checked + .nkt-install-option__inner {
    border-color: #1a1a1a;
    background: #faf9f6;
}

.nkt-install-option__label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a1a1a;
}

.nkt-install-option__price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9b99a;
}

.nkt-install-option input:checked + .nkt-install-option__inner .nkt-install-option__price {
    color: #1a1a1a;
}

/* ============================================
   ORDER SUMMARY
   ============================================ */
.nkt-config-summary {
    border-bottom: none;
    padding-bottom: 2rem;
}

.nkt-summary-card {
    background: #f8f7f4;
    border-radius: 12px;
    padding: 2rem;
}

.nkt-summary-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
}

.nkt-summary-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9e9a8f;
}

.nkt-summary-detail {
    font-size: 0.9rem;
    color: #4a4740;
}

.nkt-summary-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
}

.nkt-summary-divider {
    height: 1px;
    background: #e5e3dc;
    margin: 0.5rem 0;
}

.nkt-summary-total {
    padding-top: 1rem;
}

.nkt-summary-total .nkt-summary-label {
    font-size: 0.85rem;
    color: #1a1a1a;
}

.nkt-summary-total .nkt-summary-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.nkt-summary-note {
    font-size: 0.8rem;
    color: #9e9a8f;
    text-align: center;
    margin: 1rem 0 0;
}

/* ============================================
   CONTACT FIELDS
   ============================================ */
.nkt-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.nkt-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b6860;
    margin-bottom: 0.5rem;
}

.nkt-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e3dc;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #1a1a1a;
}

.nkt-field input::placeholder {
    color: #ccc9be;
}

.nkt-field input:focus {
    border-color: #c9b99a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 185, 154, 0.15);
}

/* ============================================
   SUBMIT
   ============================================ */
.nkt-config-submit {
    text-align: center;
    padding-top: 1rem;
}

.nkt-config-submit .nkt-btn {
    font-size: 0.9rem;
    padding: 20px 48px;
}

.nkt-submit-note {
    font-size: 0.8rem;
    color: #9e9a8f;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .nkt-colour-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .nkt-width-grid {
        grid-template-columns: 1fr;
    }

    .nkt-polish-grid {
        grid-template-columns: 1fr;
    }

    .nkt-install-options {
        grid-template-columns: 1fr;
    }

    .nkt-contact-grid {
        grid-template-columns: 1fr;
    }

    .nkt-summary-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
    }

    .nkt-summary-detail {
        grid-column: 1 / -1;
        order: 3;
        font-size: 0.8rem;
    }

    .nkt-config-section {
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .nkt-config-section__header h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   STICKY MOBILE FOOTER
   ============================================ */
.nkt-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e3dc;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.nkt-sticky-footer.is-visible {
    transform: translateY(0);
    visibility: visible;
}

.nkt-sticky-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.nkt-sticky-footer__price {
    display: flex;
    flex-direction: column;
}

.nkt-sticky-footer__label {
    font-size: 0.7rem;
    color: #9e9a8f;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.1rem;
}

.nkt-sticky-footer__value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

@media (min-width: 769px) {
    .nkt-sticky-footer {
        display: none !important;
    }
}
