/* ===============================
   GLOBAL RESET
=============================== */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f4f1ea;
    transition:0.3s ease;
}

a{
    text-decoration:none;   /* REMOVE UNDERLINES */
}

/* ===============================
   MAIN CONTAINER
=============================== */

.container-center{
    width:90%;
    max-width:900px;
    margin:60px auto;
    background:#fff;
    padding:50px;
    border-radius:20px;
    box-shadow:0 12px 35px rgba(0,0,0,0.08);
}

h2{
    margin-bottom:30px;
    font-size:26px;
}

/* ===============================
   FORM STYLING
=============================== */

form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

input[type="text"],
input[type="email"]{
    width:100%;
    padding:14px 18px;
    border-radius:30px;
    border:1px solid #ddd;
    font-size:15px;
    transition:0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus{
    border-color:#d4af37;
    outline:none;
    box-shadow:0 0 0 3px rgba(212,175,55,0.15);
}

/* OTP INPUT */
input[name="otp"]{
    width:200px;
    padding:14px;
    border-radius:30px;
    border:1px solid #ddd;
    font-size:18px;
    text-align:center;
    letter-spacing:3px;
}

/* ===============================
   BUTTON
=============================== */

.gold-btn{
    align-self:flex-start;
    background:linear-gradient(45deg,#b8860b,#d4af37);
    border:none;
    padding:14px 35px;
    color:#fff;
    border-radius:30px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s ease;
    margin-bottom:15px;
}

.gold-btn:hover{
    transform:scale(1.05);
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

/* ===============================
   GRID
=============================== */

.grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:25px;
}

.card{
    background:#fafafa;
    padding:25px;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(0,0,0,0.05);
}

/* ===============================
   TOGGLE SWITCH
=============================== */

.toggle{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:14px 0;
    font-size:15px;
}

.toggle label{
    position:relative;
    width:52px;
    height:26px;
}

.toggle input{
    opacity:0;
    width:0;
    height:0;
}

.slider{
    position:absolute;
    cursor:pointer;
    top:0; left:0; right:0; bottom:0;
    background:#e74c3c;
    border-radius:34px;
    transition:.4s;
}

.slider:before{
    content:"";
    position:absolute;
    height:20px;
    width:20px;
    left:3px;
    bottom:3px;
    background:white;
    border-radius:50%;
    transition:.4s;
}

input:checked + .slider{
    background:#27ae60;
}

input:checked + .slider:before{
    transform:translateX(26px);
}

/* ===============================
   NOT APPLICABLE SPECIAL STYLE
=============================== */

.toggle.not-applicable{
    background:#f9f3e6;
    padding:8px 12px;
    border-radius:10px;
    border:1px dashed #d4af37;
    font-weight:600;
}

/* ===============================
   PROGRESS BAR
=============================== */

.progress-wrapper{
    display:flex;
    justify-content:space-between;
    margin-bottom:30px;
}

.progress-step{
    flex:1;
    text-align:center;
    padding:10px;
    border-bottom:3px solid #ddd;
}

.progress-step.done{
    border-color:#27ae60;
}

.progress-step.active{
    border-color:#b8860b;
}

/* ===============================
   MOBILE
=============================== */

@media(max-width:768px){

    .container-center{
        padding:30px 20px;
        margin:30px auto;
    }

    .grid{
        grid-template-columns:1fr;
    }

    input[name="otp"]{
        width:100%;
    }

    .gold-btn{
        width:100%;
        text-align:center;
    }
}

/* MODAL STYLING */

.modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
}

.modal-content{
    background:#fff;
    width:90%;
    max-width:500px;
    max-height:80vh;
    overflow-y:auto;
    padding:20px;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

/* ================= TOGGLE STYLE ================= */

.toggle {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:10px 0;
    padding:8px 12px;
    border-radius:8px;
    background:#f9f9f9;
    transition:all 0.3s ease;
}

.toggle span {
    font-size:14px;
    font-weight:500;
}

/* SWITCH STRUCTURE */
.toggle label {
    position:relative;
    display:inline-block;
    width:45px;
    height:22px;
}

.toggle input {
    opacity:0;
    width:0;
    height:0;
}

.slider {
    position:absolute;
    cursor:pointer;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:#ccc;
    transition:.4s;
    border-radius:22px;
}

.slider:before {
    position:absolute;
    content:"";
    height:18px;
    width:18px;
    left:2px;
    bottom:2px;
    background-color:white;
    transition:.4s;
    border-radius:50%;
}

/* NORMAL ACTIVE STATE */
.toggle input:checked + .slider {
    background-color:#2ecc71; /* GREEN for active */
}

.toggle input:checked + .slider:before {
    transform:translateX(22px);
}

/* NOT APPLICABLE STYLE */
.not-applicable-toggle input:checked + .slider {
    background-color:#e74c3c; /* RED when disabled */
}

/* DISABLED CATEGORY LOOK */
.category-disabled {
    opacity:0.4;
}