/* quote-sample page. Every selector starts with .nk-quote-sample, the page's wrapper, so nothing here reaches the theme. */

/* --- Header --- */
.nk-quote-sample .quote-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: radial-gradient(circle at top, var(--card-bg) 0%, var(--bg-color) 70%);
}

.nk-quote-sample .quote-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.nk-quote-sample .quote-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* --- Quote table: a 4-column grid; each .q-row uses display: contents so its cells sit in the grid --- */
.nk-quote-sample .quote-container {
    max-width: 1100px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.nk-quote-sample .quote-table {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr 1fr 1fr; /* item | details | cost | days */
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.nk-quote-sample .q-header {
    padding: 1.2rem 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 2px solid var(--border);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nk-quote-sample .align-right { text-align: right; }
.nk-quote-sample .align-center { text-align: center; }

.nk-quote-sample .q-row {
    display: contents;
}

.nk-quote-sample .q-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: background 0.3s;
}

.nk-quote-sample .q-cell:last-child { border-right: none; }

.nk-quote-sample .q-row:hover .q-cell {
    background: rgba(56, 189, 248, 0.03);
}

.nk-quote-sample .cell-feature {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.nk-quote-sample .cell-feature .tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
}

.nk-quote-sample .detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nk-quote-sample .detail-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
}

.nk-quote-sample .detail-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: monospace;
    font-weight: bold;
}

.nk-quote-sample .cell-price {
    justify-content: center;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--green);
}

.nk-quote-sample .cell-days {
    justify-content: center;
    align-items: center;
}

.nk-quote-sample .day-badge {
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple);
    font-size: 0.9rem;
    font-weight: bold;
}

/* --- Totals --- */
.nk-quote-sample .quote-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: #151f32;
    border-top: 2px solid var(--primary);
}

.nk-quote-sample .footer-note {
    max-width: 50%;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nk-quote-sample .total-block {
    text-align: right;
}

.nk-quote-sample .total-label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nk-quote-sample .total-price {
    margin-top: 0.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--green);
}

.nk-quote-sample .total-days {
    margin-top: 5px;
    font-weight: bold;
    color: var(--purple);
}

/* --- Call to action --- */
.nk-quote-sample .quote-cta {
    text-align: center;
    padding-bottom: 4rem;
}

.nk-quote-sample .quote-cta p {
    margin-bottom: 1.5rem;
}

/* --- Phones: each row becomes a card --- */
@media (max-width: 768px) {
    .nk-quote-sample .quote-table {
        display: block;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .nk-quote-sample .q-header { display: none; }

    .nk-quote-sample .q-row {
        display: block;
        overflow: hidden;
        margin-bottom: 2rem;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nk-quote-sample .q-cell {
        padding: 1.2rem;
        border-right: none;
    }

    .nk-quote-sample .cell-price {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding-bottom: 0;
        border-bottom: none;
        text-align: left;
    }

    .nk-quote-sample .cell-price::before {
        content: '鞎餌嚗?;
        margin-right: 10px;
        font-family: sans-serif;
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .nk-quote-sample .cell-days {
        align-items: flex-start;
        padding-top: 0.5rem;
        border-bottom: none;
    }

    .nk-quote-sample .quote-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .nk-quote-sample .footer-note { max-width: 100%; }
    .nk-quote-sample .total-block { text-align: center; }
}
