/* ==========================================================================
   eTermin Embed – Switch Card & Iframe
   ========================================================================== */

/* ---------- Switch Card Container ---------- */

.etermin-switch-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: clamp(3.25rem, 1.3rem + 3.9vw, 4.55rem);
}

/* ---------- Switch Row ---------- */

.etermin-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e7e2;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.etermin-switch-row:last-child {
    border-bottom: none;
}

.etermin-switch-row:hover {
    background-color: #fafafa;
}

.etermin-switch-row.is-active {
    background-color: #f4f3f0;
}

/* ---------- Label ---------- */

.etermin-switch-label {
    font-size: 16px;
    font-weight: 600;
    color: #1b3d58;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.etermin-switch-row.is-active .etermin-switch-label {
    color: #1b3d58;
}

/* ---------- Toggle (iOS-style) ---------- */

.etermin-toggle {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.etermin-toggle-track {
    display: block;
    width: 52px;
    height: 30px;
    border-radius: 15px;
    background-color: #d1d5db;
    transition: background-color 0.25s ease;
    position: relative;
}

.etermin-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state */
.etermin-switch-row.is-active .etermin-toggle-track {
    background-color: #007cba;
}

.etermin-switch-row.is-active .etermin-toggle-knob {
    transform: translateX(22px);
}

/* Focus ring for accessibility */
.etermin-toggle:focus-visible .etermin-toggle-track {
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

/* ---------- Iframe Container ---------- */

.etermin-iframe-box {
    border-radius: 20px;
    padding: 30px;
    overflow: hidden;
    background: #b5ab9f;
    width: 100%;
    display: block;
}

.etermin-iframe {
    display: block;
    width: 100%;
    border: none;
    min-height: 600px;
    border-radius: 10px;
}

/* ---------- Selected Service Title ---------- */

.etermin-selected-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.etermin-selected-subtitle {
    display: block;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.etermin-selected-name {
    display: block;
    margin-top: 3px;
    color: #1b3d58;
    font-size: 21px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 980px) {
    .etermin-iframe-box {
        border-radius: 16px;
        padding: 20px;
    }

    .etermin-selected-subtitle {
        font-size: 13px;
    }

    .etermin-selected-name {
        font-size: 20px;
    }
}

@media screen and (max-width: 767px) {
    .etermin-switch-row {
        padding: 16px 18px;
        gap: 12px;
    }

    .etermin-switch-label {
        font-size: 14px;
    }

    .etermin-switch-card {
        border-radius: 10px;
    }

    .etermin-iframe-box {
        border-radius: 12px;
        padding: 15px;
    }

    .etermin-selected-title {
        padding: 0 15px;
    }

    .etermin-selected-subtitle {
        font-size: 12px;
    }

    .etermin-selected-name {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .etermin-switch-row {
        padding: 14px 14px;
    }

    .etermin-switch-label {
        font-size: 13px;
    }

    .etermin-toggle {
        width: 46px;
        height: 26px;
    }

    .etermin-toggle-track {
        width: 46px;
        height: 26px;
        border-radius: 13px;
    }

    .etermin-toggle-knob {
        width: 20px;
        height: 20px;
        top: 3px;
        left: 3px;
    }

    .etermin-switch-row.is-active .etermin-toggle-knob {
        transform: translateX(20px);
    }
}
