﻿/* Start Custom Input  */

.entryarea {
    position: relative;
    height: 38px;
    line-height: 38px;
}

.input-float {
    color: black;
    direction: rtl;
    text-align: right;
    position: absolute;
    width: 100%;
    outline: none;
    font-size: 1em;
    padding: 0 30px;
    line-height: 38px;
    border-radius: 10px;
    border: none;
    background: #ffffff;
    transition: 0.1s ease;
    z-index: 1111;
}

.labelline {
    direction: rtl;
    text-align: right;
    position: absolute;
    font-size: 1.6rem;
    color: black;
    padding: 0 25px;
    margin: 0 20px;
    background-color: white;
    transition: 0.2s ease;
    right: 0;
    border-radius: 8px;
    opacity: 0;
    height: 0;
}

.input-float:focus,
.input-float:valid {
    color: black;
    border: none;
}

.labelline {
    opacity: 1;
    color: black;
    height: 30px;
    line-height: 30px;
    transform: translate(15px, -16px) scale(0.88);
    z-index: 1111;
}

/* End Custom Input  */

/* Start radio button */
.wrapper-radio {
    position: relative;
    height: 75px;
    width: 100%;
    border-radius: 5px;
    background: #fff;
    display: flex;
    padding: 20px 15px;
    align-items: center;
    justify-content: space-evenly;
}

.radio-title {
    position: absolute;
    top: -15px;
    right: 15px;
    background-color: white;
    padding-inline: 15px;
    padding-block: 5px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
}

.wrapper-radio .option {
    background: #fff;
    height: 100%;
    width: 100%;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid lightgray;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    transition: all 0.3s ease;
    position: relative;
}

.wrapper-radio .option .dot {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #d9d9d9;
    position: relative;
    transition: all 0.3s ease;
}

.wrapper-radio .option .dot::before {
    position: absolute;
    content: "";
    left: 4px;
    top: 4px;
    height: 12px;
    width: 12px;
    background: #0069d9;
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.5);
    transition: all 0.3s ease;
}

.wrapper-radio .option span {
    color: #808080;
    font-size: 20px;
    transition: color 0.3s ease;
}

.wrapper-radio input[type="radio"] {
    display: none;
}

/* ✅ الحالة عند التحديد - نعم (أخضر) */
.wrapper-radio input[type="radio"]:checked+label.option-yes {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.wrapper-radio input[type="radio"]:checked+label.option-yes .dot {
    background: #fff;
}

.wrapper-radio input[type="radio"]:checked+label.option-yes .dot::before {
    opacity: 1;
    transform: scale(1);
    background: #10b981;
}

.wrapper-radio input[type="radio"]:checked+label.option-yes span {
    color: #fff;
    font-weight: 600;
}

/* ✅ الحالة عند التحديد - لا (أحمر) */
.wrapper-radio input[type="radio"]:checked+label.option-no {
    border-color: #ef4444;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.wrapper-radio input[type="radio"]:checked+label.option-no .dot {
    background: #fff;
}

.wrapper-radio input[type="radio"]:checked+label.option-no .dot::before {
    opacity: 1;
    transform: scale(1);
    background: #ef4444;
}

.wrapper-radio input[type="radio"]:checked+label.option-no span {
    color: #fff;
    font-weight: 600;
}

/* Hover effects */
.wrapper-radio .option-yes:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.wrapper-radio .option-no:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* End radio button */