.ftf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.yesno-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.no-label,
.yes-label {
    font-size: 14px;
    color: #555;
}

/* SWITCH */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #cfd8dc;
    border-radius: 50px;
    inset: 0;
    transition: 0.4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(28px);
}












.yes-no-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.yes-no-toggle .no,
.yes-no-toggle .yes {
    color: #555;
    min-width: 30px;
    text-align: center;
}

/* SWITCH */
.switch {
    position: relative;
    width: 52px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #dcdcdc;
    border-radius: 34px;
    transition: 0.4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(26px);
}


.ftf-form {
    max-width: 600px;
    margin: auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}

.ftf-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 20px;
}

.slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}

input:checked+.slider {
    background: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

button {
    width: 100%;
    padding: 12px;
    background: #ff4081;
    color: #fff;
    border: none;
    border-radius: 6px;
}

.success {
    color: green;
    text-align: center;
}




.ftf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #333;
}

.ftf-label {
    max-width: 65%;
}

/* RIGHT SIDE YES / NO */
.ftf-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ftf-no,
.ftf-yes {
    font-size: 14px;
    color: #666;
    width: 28px;
    text-align: center;
}

/* SWITCH */
.ftf-switch {
    position: relative;
    width: 56px;
    height: 26px;
}

.ftf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ftf-slider {
    position: absolute;
    inset: 0;
    background: #dfe5ea;
    border-radius: 30px;
    transition: .3s;
}

.ftf-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    transition: .3s;
}

/* CHECKED (YES) */
.ftf-switch input:checked+.ftf-slider {
    background: linear-gradient(90deg, #4caf50, #6bcf8e);
}

.ftf-switch input:checked+.ftf-slider::before {
    transform: translateX(30px);
}




.ftf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ftf-row span {
    flex: 1;
}

/* Switch container */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

/* Hide radio inputs */
.switch input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Slider style */
.slider {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

/* Circle inside slider */
.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 1px;
    top: 1px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Checked Yes slider */
input[type="radio"]:checked + .slider.yes {
    background-color: #4CAF50; /* green */
}

input[type="radio"]:checked + .slider.yes::before {
    transform: translateX(20px);
}

/* Checked No slider */
input[type="radio"]:checked + .slider.no {
    background-color: #f44336; /* red */
}

input[type="radio"]:checked + .slider.no::before {
    transform: translateX(0);
}

/* Label next to toggle */
.toggle-label {
    margin-left: 5px;
    font-weight: 500;
    user-select: none;
    font-size: 14px;
}
