/* Endora Kalkulaator — layout only, no typography or button colors */

.endora-kalk { max-width: 1100px; margin: 0 auto; width: 100%; box-sizing: border-box; font-family: "Inter", sans-serif; font-size: 18px; }

/* Dots */
.ek-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.ek-dots span { width: 10px; height: 10px; border-radius: 50%; }
.ek-dots span:nth-child(1) { background: #F67599; }
.ek-dots span:nth-child(2) { background: #00A3E0; }
.ek-dots span:nth-child(3) { background: #C0D725; }
.ek-dots span:nth-child(4) { background: #FFCD00; }

/* Layout */
.ek-main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.ek-steps-col { display: flex; flex-direction: column; gap: 20px; }

/* Step */
.ek-step { border-radius: 15px; padding: 28px; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.ek-step-num { margin-bottom: 4px; color: #F67599 !important; font-weight: 700 !important; font-size: calc(1em + 4px) !important; }
.ek-step-title { margin: 0 0 20px; color: #F67599 !important; font-weight: 700 !important; font-size: calc(1em + 4px) !important; }

/* Tase cards */
.ek-tase-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

.ek-tase-card {
    border: 2px solid #E8E8E8;
    border-radius: 15px;
    padding: 18px 14px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s, background .2s;
    position: relative;
}

.ek-tase-card:hover { border-color: #C0D725; box-shadow: 0 4px 14px rgba(192,215,37,.18); }
.ek-tase-card.ek-tase-selected { border-color: #00A3E0; background: #E0F4FB; }
.ek-tase-card input { display: none; }
.ek-tase-desc { display: block; margin-bottom: 10px; }
.ek-tase-list { list-style: none; padding: 0; margin: auto 0 0; text-align: left; }
.ek-tase-list li { padding: 2px 0; }

.ek-tase-emoji { display: block; font-size: 1.8em; margin-bottom: 6px; }
.ek-tase-name { display: block; margin-bottom: 8px; font-weight: 900; font-size: 1.4em; }
.ek-tase-name--soodne, .ek-tase-name--keskmine, .ek-tase-name--premium { color: inherit !important; }
.ek-tase-desc { display: block; margin-bottom: 10px; font-size: 1.1em; }
.ek-tase-desc--soodne, .ek-tase-desc--keskmine, .ek-tase-desc--premium { color: inherit !important; font-size: 1.1em; }

/* Row / Group */
.ek-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ek-label { display: block; margin-bottom: 10px; }

/* Pills */
.ek-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }

.ek-pill {
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all .2s;
    display: inline-block;
    user-select: none;
}

.ek-pill input { display: none; }
.ek-pill:hover { border-color: #C0D725; }
.ek-pill.ek-pill-sel { border-color: #00A3E0; background: #E0F4FB; color: inherit; }

/* Custom dropdown */
.ek-dropdown {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.ek-dd-display {
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    padding: 9px 34px 9px 12px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300A3E0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.ek-dropdown.ek-dd-open .ek-dd-display,
.ek-dd-display:hover { border-color: #00A3E0; }

.ek-dd-list {
    display: none;
    position: absolute;
    background: #fff;
    border: 2px solid #00A3E0;
    border-radius: 15px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,163,224,.15);
    max-height: 220px;
    overflow-y: auto;
}

.ek-dd-item {
    padding: 9px 14px;
    cursor: pointer;
    transition: background .15s;
}

.ek-dd-item:hover { background: #E0F4FB; }
.ek-dd-item.ek-dd-active { color: #00A3E0; }

/* Services */
.ek-teenused-wrap { overflow-x: auto; }
.ek-teenused-header { display: grid; grid-template-columns: 1fr 110px 130px 36px; gap: 8px; padding: 0 8px 8px; }
.ek-teenus-row { display: grid; grid-template-columns: 1fr 110px 130px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }

.ek-select,
.ek-input {
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    padding: 9px 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s;
    background: #fff;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.ek-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300A3E0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.ek-select:focus, .ek-input:focus { outline: none; border-color: #00A3E0; }
.ek-t-hind { white-space: nowrap; }

.ek-remove-btn { background: none; border: none; cursor: pointer; padding: 4px; transition: color .2s; }
.ek-remove-btn:hover { color: #F67599; }

.ek-add-btn {
    color: #00A3E0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E0F4FB;
    border: 2px solid #00A3E0;
    border-radius: 15px;
    padding: 9px 20px;
    cursor: pointer;
    margin-top: 12px;
    transition: background .2s, box-shadow .2s;
}
.ek-add-btn:hover { background: #c8eaf7; box-shadow: 0 4px 14px rgba(0,163,224,.18); }
.ek-add-icon { color: #00A3E0; }

/* Materjal */
.ek-materjal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ek-materjal-card {
    border: 2px solid #E8E8E8;
    border-radius: 15px;
    padding: 18px;
    cursor: pointer;
    text-align: center;
    display: block;
    transition: all .2s;
}

.ek-materjal-card input { display: none; }
.ek-materjal-card:hover { border-color: #C0D725; }
.ek-materjal-card.ek-mat-sel { border-color: #00A3E0; background: #E0F4FB; }
.ek-mat-icon { display: block; margin-bottom: 8px; }
.ek-mat-name { display: block; margin-bottom: 4px; font-weight: 700 !important; font-size: 16px; }
.ek-mat-lisa { display: block; margin-bottom: 4px; font-size: 14px; }
.ek-mat-desc { font-size: 14px; }

/* Summary */
.ek-summary-col { position: sticky; top: 24px; }

.ek-kokkuvote {
    border-radius: 15px;
    border: 2px solid #00A3E0;
    padding: 22px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.ek-kv-title { margin-bottom: 16px; font-weight: 700 !important; }

.ek-info-rida { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #EBEBEB; gap: 8px; }
.ek-info-rida strong { text-align: right; }
.ek-s-teenused { margin: 12px 0; min-height: 30px; }
.ek-kv-rida { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #F0F0F0; gap: 8px; }
.ek-s-empty { padding: 8px 0; }
.ek-total-wrap { margin: 16px 0 10px; }
.ek-total-label { margin-bottom: 2px; }
.ek-total { transition: color .3s; }
.ek-total.ek-total-active { color: #F67599; }
.ek-märkus { margin: 4px 0 0; line-height: 1.5; }

/* Form */
.ek-paringuvorm { margin-top: 28px; border-radius: 15px; padding: 32px; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.ek-paring-title { margin: 0 0 20px; }
.ek-form-row { margin-bottom: 16px; }
.ek-form-row label { display: block; margin-bottom: 6px; font-size: 18px; font-family: "Inter", sans-serif; }
.ek-form-row input[type="text"],
.ek-form-row input[type="email"],
.ek-form-row input[type="tel"],
.ek-form-row textarea { font-size: 18px; font-family: "Inter", sans-serif; }
.ek-form-checkbox { font-size: 14px; }

.ek-form-row input[type="text"],
.ek-form-row input[type="email"],
.ek-form-row input[type="tel"],
.ek-form-row textarea {
    width: 100%;
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    padding: 10px 14px;
    box-sizing: border-box;
    transition: border-color .2s;
}

.ek-form-row input:focus, .ek-form-row textarea:focus { outline: none; border-color: #C0D725; }
.ek-form-row textarea { min-height: 100px; resize: vertical; }
.ek-form-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.ek-form-checkbox input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.ek-form-submit { margin-top: 20px; }
.endora-kalk .ek-form-submit button {
    background: #fff !important;
    background-color: #fff !important;
    color: #00A3E0 !important;
    border: 2px solid #00A3E0 !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
}
.endora-kalk .ek-form-submit button:hover,
.endora-kalk .ek-form-submit button:focus {
    background: #00A3E0 !important;
    background-color: #00A3E0 !important;
    color: #fff !important;
    border: 2px solid #00A3E0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.ek-form-notice { padding: 12px 16px; border-radius: 15px; margin-bottom: 16px; display: none; }
.ek-form-notice.ek-success { background: #F0F7D4; border: 1px solid #C0D725; }
.ek-form-notice.ek-error   { background: #FDE8EE; border: 1px solid #F67599; }

/* Mobile */
@media (max-width: 900px) {
    .ek-main-layout { grid-template-columns: 1fr; }
    .ek-summary-col { position: static; }
    .ek-kokkuvote { border: 2px solid #00A3E0; }
}

@media (max-width: 768px) {
    .ek-tase-grid { grid-template-columns: 1fr; }
    .ek-step { padding: 16px; }
    .ek-paringuvorm { padding: 16px; }
}

@media (max-width: 640px) {
    .ek-row { grid-template-columns: 1fr; gap: 12px; }
    .ek-materjal-grid { grid-template-columns: 1fr; }
    .ek-pill { display: block; text-align: center; box-sizing: border-box; }
    .ek-add-btn { color: #00A3E0; width: 100%; justify-content: center; }
    .ek-teenused-header { grid-template-columns: 1fr 70px 80px 28px; font-size: 12px; }
    .ek-teenus-row { grid-template-columns: 1fr 70px 80px 28px; }
    .ek-teenused-header > *, .ek-teenus-row > * { min-width: 0; overflow: hidden; }
    .ek-teenus-input { width: 58px !important; font-size: 13px; }
}

/* ── Mini calculator ───────────────────────────────────────────────── */
.ekm-wrap {
    display: grid;
    grid-template-columns: 40% 50%;
    justify-content: space-between;
    padding: 0 3%;
    box-sizing: border-box;
    align-items: stretch;
}

.ekm-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.ekm-right { display: flex; }
.ekm-card { flex: 1; }

/* Left */
.ekm-dots { display: flex; gap: 8px; margin-bottom: 20px; }
.ekm-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ekm-dot-1 { background: #C0D725; }
.ekm-dot-2 { background: #FFCD00; }

.ekm-heading { margin: 0 0 14px; }
.ekm-desc    { margin: 0 0 28px; line-height: 1.6; }

.ekm-cta {
    display: inline-flex;
    align-items: center;
    background: #C0D725;
    color: #101820 !important;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-family: "Montserrat", sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .2s;
}
.ekm-cta:hover { background: #aabf1f; color: #101820 !important; text-decoration: none !important; }

/* Right card */
.ekm-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* Slider section */
.ekm-slider-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.ekm-dd { flex: 1; max-width: 60%; }
.ekm-slider-label { font-weight: 700; }

.ekm-teenus-sel {
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 5px 28px 5px 10px;
    font-family: inherit;
    font-size: 0.85em;
    background: #fff;
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C0D725' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* Range slider */
.ekm-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #C0D725 var(--pct, 10%), #E0E0E0 var(--pct, 10%));
    outline: none;
    cursor: pointer;
    margin-bottom: 10px;
}
.ekm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #C0D725;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    cursor: pointer;
}
.ekm-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #C0D725;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    cursor: pointer;
}

.ekm-slider-vals {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9em;
}
.ekm-slider-vals strong { color: #101820; font-size: 1.1em; }

/* Result box */
.ekm-result {
    background: #FFF8D6;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}
.ekm-result-label { margin-bottom: 6px; font-size: 0.9em; }
.ekm-price { font-size: 2.8em; font-weight: 900; color: #101820; line-height: 1.1; margin-bottom: 6px; }
.ekm-service { font-size: 0.85em; color: #666; }

/* Mobile */
@media (max-width: 768px) {
    .ekm-wrap { grid-template-columns: 1fr; padding: 0; gap: 28px; }
    .ekm-cta { width: 100%; justify-content: center; box-sizing: border-box; }
}
