/* =========================================
   1. LAYOUT PRINCIPAL00
   ========================================= */
.studio-calc-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    font-family: Helvetica, Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.studio-calc-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.studio-calc-sidebar {
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    z-index: 10;
    top: 100px;
    width: 320px;
}

@media (max-width: 1024px) {
    .studio-calc-layout {
        flex-direction: column;
    }

    .studio-calc-sidebar {
        width: 100% !important;
        position: static;
        margin-top: 30px;
    }
}

/* =========================================
   2. ACCORDION
   ========================================= */
.modern-accordion-item {
    margin-bottom: 20px;
    width: 100%;
    display: block;
    border: none;
}

.modern-cat-header {
    padding: 20px 25px;
    border-radius: 12px;
    cursor: pointer;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.modern-cat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex-grow: 1;
    line-height: 1.2;
}

.icon-state {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-left: 15px;
}

.icon-state span {
    position: absolute;
    border-radius: 2px;
    transition: 0.3s;
    display: block;
    background-color: #333;
}

.line-h {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.line-v {
    height: 100%;
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.modern-cat-header.active .line-v {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.modern-cat-content {
    display: none;
    padding-top: 25px;
    width: 100%;
}

.modern-cat-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* =========================================
   3. GRID & CARDURI
   ========================================= */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .modern-grid {
        grid-template-columns: 1fr;
    }
}

/* Stil Card Standard */
.modern-card {
    padding: 20px;
    /* Padding normal */
    border-radius: 20px;
    border: 2px solid transparent;
    transition: 0.3s;
    position: relative;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.modern-card.is-selected {
    border-color: #FF1F31;
}

.card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    /* Important pentru cand devine copilul unui card animat */
    border-radius: 16px;
}

/* --- CHOICE POOL HIGHLIGHT (Metoda Gradient Părinte) --- */
.modern-card.in-choice-pool {
    /* 1. Resetăm bordura standard */
    border: none !important;

    /* 2. Padding-ul devine grosimea bordurii (3px) */
    padding: 3px !important;

    /* 3. Gradientul animat pe fundalul cardului */
    background: linear-gradient(60deg, #2760ff, #23cba7, #f6d327, #ff3e3e, #2760ff) !important;
    background-size: 300% 300% !important;
    animation: move-gradient-border 3s linear infinite !important;

    /* 4. Glow extern */
    box-shadow: 0 0 15px rgba(39, 96, 255, 0.3) !important;
}

/* Interiorul Alb (Acopera gradientul) */
.modern-card.in-choice-pool>.card-inner {
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    /* Re-adaugam spatiul interior pentru continut */
    padding: 17px;
    box-sizing: border-box;
    /* Radius interior usor mai mic pentru a arata bine */
    border-radius: 17px !important;
}

/* ----------------------------------------------------- */

/* Elemente Interne Card */
.img-wrapper {
    width: 100%;
    height: 140px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-wrapper a,
.img-bg {
    display: block;
    width: 100%;
    height: 100%;
}

.img-bg {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: multiply;
}

.info-block {
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.info-block h4 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.3;
    height: 40px;
    overflow: hidden;
    color: #333;
}

.price-tag {
    font-weight: 800;
    font-size: 18px;
    margin: 0;
    color: #333;
}

.per-day {
    font-size: 12px;
    font-weight: normal;
    color: #888;
}

/* =========================================
   4. CONTROALE
   ========================================= */
.pill-control,
.hours-control-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    background: #F2F4F7;
    border-radius: 50px;
    padding: 4px;
    width: 130px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}


.ctrl-btn,
.btn-hour-minus,
.btn-hour-plus {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border: none !important;
    background: #fff !important;
    border-radius: 50% !important;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 0 !important;
    margin: 0 !important;
}

.ctrl-btn:hover,
.btn-hour-minus:hover,
.btn-hour-plus:hover {
    background: #e2e2e2 !important;
}

.ctrl-input,
.pkg-hours-input,
#booking-hours {
    width: 50px !important;
    min-width: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #333 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-shadow: none !important;
    height: 32px !important;
    line-height: 32px !important;
    display: inline-block !important;
}

.ctrl-input:focus,
.pkg-hours-input:focus,
#booking-hours:focus {
    outline: none !important;
}

.ctrl-input::-webkit-outer-spin-button,
.ctrl-input::-webkit-inner-spin-button,
.pkg-hours-input::-webkit-outer-spin-button,
.pkg-hours-input::-webkit-inner-spin-button,
#booking-hours::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hour-display-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.hour-display-wrap span {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-left: 2px;
    /* Keep this small margin */
}

/* =========================================
   5. PACHETE
   ========================================= */
.esc-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #333;
}

.esc-duration-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #eee;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.discount-notice {
    margin-top: 10px;
    font-size: 13px;
    color: #D92558;
    font-weight: 600;
    text-align: center;
}

.esc-packages-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.pkg-card {
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pkg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.pkg-card.active {
    border-color: #FF1F31;
    background-color: #fff5f7;
}

.pkg-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 15px;
}

.pkg-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pkg-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pkg-price {
    font-weight: 800;
    color: #FF1F31;
    font-size: 18px;
    margin-bottom: 10px;
}

.pkg-price .small {
    font-size: 13px;
    font-weight: 400;
    color: #777;
}

.pkg-duration-control {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.pkg-discount-msg {
    font-size: 12px;
    color: #FF1F31;
    font-weight: 600;
    margin-top: 5px;
}

/* =========================================
   6. SIDEBAR
   ========================================= */
.quote-summary-container {
    border: 1px solid #eee;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f9f9f9;
    font-weight: 700;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.h-item {
    flex: 1;
    text-align: left;
}

.h-qty {
    width: 40px;
    text-align: center;
}

.h-amount {
    width: 70px;
    text-align: right;
}

.quote-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.q-cat-title {
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 2px;
    color: #333;
}

.q-cat-title:first-child {
    margin-top: 0;
}

.q-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.q-name {
    flex: 1;
    padding-right: 5px;
}

.q-qty {
    width: 40px;
    text-align: center;
    color: #333;
    font-weight: 600;
}

.q-price {
    width: 70px;
    text-align: right;
    font-weight: 600;
    color: #333;
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 2px solid #eee;
    background: #fff;
}

.total-label {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.total-value {
    font-weight: 800;
    font-size: 20px;
    color: #d92558;
}

.quote-empty-msg {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.calc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.btn-download-pdf,
.btn-email-quote {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.btn-download-pdf {
    background: #333;
    color: white;
}

.btn-download-pdf:hover {
    background: #000;
}

.btn-email-quote {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.btn-email-quote:hover,
.btn-email-quote:active {
    border-color: #FF1F31;
    background: #FF1F31;
    color: #fff;
}

/* =========================================
   7. MODAL
   ========================================= */
.esc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.esc-modal-box {
    background: white;
    padding: 30px;
    width: 600px;
    max-width: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
    box-sizing: border-box;
}

.esc-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: 0.2s;
}

.esc-modal-close:hover {
    color: #333;
}

.esc-modal-box h2 {
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    color: #111;
}

.esc-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.esc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.req {
    color: red;
}

.esc-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    height: 45px;
    transition: 0.2s;
}

.esc-form-group input:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 45px;
}

.phone-input-wrapper .flag-icon {
    background: #f9f9f9;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #e0e0e0;
    font-size: 18px;
}

.phone-input-wrapper input {
    border: none !important;
    height: 100%;
    border-radius: 0 !important;
}

.date-time-wrapper {
    display: flex;
    gap: 15px;
}

.date-time-wrapper input {
    flex: 1;
}

.date-time-wrapper .field-col {
    flex: 1;
}

.esc-file-preview {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    border: 1px dashed #cce0ff;
}

.esc-file-preview .file-icon {
    font-size: 24px;
}

.esc-file-preview .file-name {
    font-weight: 600;
    color: #0056b3;
    font-size: 14px;
}

.esc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
    padding-top: 10px;
}

.btn-cancel {
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: #f5f5f5;
    color: #333;
}

.btn-submit {
    background: #000;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.esc-form-status {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
    color: #333;
    font-weight: 500;
}

.esc-form-status.error {
    color: #dc3232;
}

.esc-form-status.success {
    color: #46b450;
}

/* ============================
   NOTIFICATION BADGE (Animat)
   ============================ */
@keyframes move-gradient-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.notice-outer-wrapper {
    /* Plain Text Integration */
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
    border: none;
    position: static;
}

.notice-inner-content {
    display: block;
    width: 100%;
    padding: 5px 20px 15px 20px;
    /* Aligned with sidebar content padding */
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    /* Matches .q-item-row */
    color: #555;
    /* Matches .q-item-row */
    text-align: left;
    font-weight: normal;
    background: transparent;
    border-radius: 0;
}


@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
