/* ==========================================================
   DSH Calculator Styles — Premium "Aura" Edition
   Matches theme glassmorphism, gradients, and typography
   Targets: .Calc and .calc-short structure
   ========================================================== */

/* ── Container ───────────────────────────────────────── */
.calc-short {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Header ──────────────────────────────────────────── */
.Calc__header {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ── Form Layout ─────────────────────────────────────── */
.Calc {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.Calc__row {
    width: 100%;
}

.Calc__group {
    display: flex;
    gap: 1rem;
}

.Calc__cell {
    flex: 1;
}

/* ── Labels & Text ───────────────────────────────────── */
.Calc__label {
    display: block;
    width: 100%;
}

.Calc__label-item {
    display: block;
    font-size: 0.875rem;
    color: var(--dsh-primary-200);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.Calc__label-item-words {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: none;
    margin-left: 0.25rem;
}

/* ── Selects ─────────────────────────────────────────── */
.Calc__select {
    display: block;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.Calc__select:hover,
.Calc__select:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--dsh-gold-400);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.Calc__select select {
    display: block;
    width: 100%;
    height: 48px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 0 1rem;
    appearance: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.Calc__select select option {
    background-color: var(--dsh-primary-900);
    color: #fff;
}

/* Custom Arrow */
.Calc__select::after {
    content: "\ea4e";
    /* Remix Icon: arrow-down-s-line */
    font-family: "remixicon";
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--dsh-gold-400);
    font-size: 1.25rem;
}

/* ── Page Counter (Buttons) ──────────────────────────── */
/* Note: The PHP file uses .uvocalc--pages__buttons inside .Calc__cell */
.uvocalc--pages__buttons {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    height: 48px;
}

.uvocalc--pages__buttons button {
    height: 100%;
    width: 48px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 1.25rem;
}

.uvocalc--pages__buttons button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dsh-gold-400);
}

.uvocalc--pages__buttons button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.uvocalc--pages__buttons button span {
    /* Ensure span is visible since PHP uses it for + and - text */
    display: block;
    line-height: 1;
}

.uvocalc--pages__buttons input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    height: 100%;
    width: 50px;
    /* Min width */
}

/* ── Total Price ─────────────────────────────────────── */
.Calc__total {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--dsh-primary-200);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.Calc__total span[data-total-price] {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

/* ── Submit Button ───────────────────────────────────── */
.Calc__submit {
    margin-top: 1rem;
}

.sform-submit {
    display: block;
    width: 100%;
    background: var(--dsh-gold-500);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    -webkit-appearance: none;
}

.sform-submit:hover {
    background: #ffffff;
    color: var(--dsh-gold-600);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(255, 255, 255, 0.2);
}

/* ── Mobile Responsive ───────────────────────────────── */
@media (max-width: 576px) {
    .calc-short {
        padding: 1.5rem;
    }

    .Calc__header {
        font-size: 1.5rem;
    }

    .Calc__group {
        flex-direction: column;
        gap: 1.25rem;
    }
}