@import "../components/navbar.css";
@import "../components/footer.css";
@import "../components/backtop.css";

.header-video-4 {
    position: relative;
    width: 100%;
    height: 700px;
    z-index: 1;
    overflow: hidden;
    clip-path: ellipse(80% 90% at 50% 0%);
}
.header-video__content-4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    filter: brightness(0.9) saturate(1) hue-rotate(15deg);
    object-fit: cover;
    z-index: -1;
}

.hero-info-1 h1 {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: bold;
    text-align: center;
    margin-top: 7.5rem;
    letter-spacing: 0px;
    line-height: 1.1;
}

/* ===== Plan ===== */
.plan {
    position: relative;
    bottom: 26rem;
    width: 100%;
    margin: 0 auto;
    margin-bottom: -26rem;
}

.item-price {
    align-items: center;
    line-height: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: auto;
    justify-items: center;
    color: #fff;
}

.plan-item {
    padding: 25px 25px 0;
    width: 320px;
    height: 240px;
    background: #0e172a;
    border-radius: 25px;
    position: relative;
    z-index: 2;
}

.item-price h1 {
    font-weight: bold;
    font-size: 40px;
}

.plan-item span {
    font-size: 14px;
}

.item-price p {
    font-size: 25px;
    font-weight: 550;
}

.item-price button {
    width: 265px;
    border-radius: 10px;
    height: 45px;
    margin-top: 1.5rem;
    font-weight: 550 !important;
    background: #fff !important;
    color: #0e2147 !important;
}

.item-price button:hover {
    background: #01c2be !important;
    color: #fff !important;
    transition: all 0.3s ease-in-out;
}

.plan-item.custom {
    background: #01c2be;
    box-shadow: 0px 0px 25px #01c2be;
}

.plan-item.custom h1 {
    font-weight: 500;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.plan-item.custom button {
    margin-top: 2.1rem;
}

.plan-item.custom button:hover {
    background: #0e2147 !important;
    color: #01c2be !important;
    transition: all 0.3s ease-in-out;
}

/* ===== container-info ===== */
.container-info {
    color: #fff;
    margin-top: 10rem;
}

.info-text {
    text-align: left;
}

.info-text h1 {
    font-size: clamp(36px, 6vw, 45px);
    font-weight: bold;
    line-height: 1.2;
}

.info-text p {
    color: #ffffffe8;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 400;
    margin-top: 1rem;
}

.container-icon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8rem;
    margin-top: 4rem;
}

.icon-info {
    text-align: center;
}

.icon-info i {
    font-size: 60px;
    color: #01c2be;
}

.icon-info p {
    font-size: 17px;
    margin-top: 2rem;
    color: #ffffffe8;
    line-height: 1.4;
}

.text-clear {
    margin-top: 2.5rem;
}

.text-clear h1 {
    font-size: clamp(36px, 6vw, 45px);
    font-weight: bold;
    line-height: 1.2;
}

.text-clear p {
    font-size: clamp(16px, 3vw, 24px);
    color: #ffffffe8;
    font-weight: 400;
    margin-top: 1rem;
}

/* ===== stories ===== */
.container-stories {
    margin-top: 8rem;
    padding-top: 0;
}

.stories-info {
    text-align: center;
    color: #fff;
}

.stories-info h2 {
    font-size: clamp(36px, 6vw, 50px);
    font-weight: 600;
    line-height: 1;
}

.stories-info h1 {
    font-size: clamp(36px, 6vw, 57px);
    font-weight: 800;
    color: #01c2be;
}

.stories-img {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    bottom: 4.5rem;
    height: 4.5rem;
}

.stories-img img {
    position: absolute;
    z-index: -1;
    width: 13%;
    display: block;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(to bottom, black -300%, transparent);
    mask-image: linear-gradient(to bottom, black -300%, transparent);
}

.stories-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    background: linear-gradient(to top, #0e2147, transparent);
}

/* ===== 915px ===== */
@media (max-width: 915px) {
    .container-icon {
        gap: 3rem;
    }

    .stories-img {
        bottom: 4rem;
        height: 4rem;
    }

    .stories-img img {
        width: 20%;
    }
}

/* ===== 768px ===== */
@media (max-width: 768px) {
    .plan {
        bottom: 28rem;
        margin-bottom: -28rem;
    }

    .container-info {
        margin-top: 5rem;
    }

    .container-icon {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        margin-top: 2.5rem;
    }

    .icon-info i {
        font-size: 45px;
    }

    .icon-info p {
        font-size: 14px;
        margin-top: 1rem;
    }
}

/* ===== 700px ===== */
@media (max-width: 700px) {
    .stories-img {
        bottom: 3rem;
        height: 3rem;
    }
}

/* ===== 600px ===== */
@media (max-width: 600px) {
    .plan {
        bottom: 28rem;
        margin-bottom: -31rem;
    }

    .container-info {
        margin-top: 5rem;
    }

    .stories-img {
        bottom: 1.8rem;
        height: 1.8rem;
    }

    .stories-img img {
        width: 28%;
    }
}

/* ===== 480px ===== */
@media (max-width: 480px) {
    .plan {
        bottom: 28rem;
        margin-bottom: -31rem;
    }

    .container-info {
        margin-top: 5;
    }

    .container-icon {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .icon-info i {
        font-size: 32px;
    }

    .icon-info p {
        font-size: 12px;
        margin-top: 0.5rem;
    }

    .text-clear {
        margin-top: 1.5rem;
    }

    .stories-img {
        bottom: 1.2rem;
        height: 1.2rem;
    }

    .stories-img img {
        width: 35%;
    }
}

/* ===== 400px ===== */
@media (max-width: 400px) {
    .plan {
        bottom: 27rem;
        margin-bottom: -29rem;
        width: 90%;
    }

    .container-info {
        margin-top: 2rem;
    }
}

/* ===== 320px ===== */
@media (max-width: 320px) {
    .plan {
        bottom: 27rem;
        margin-bottom: -28rem;
        width: 90%;
    }

    .container-info {
        margin-top: 2rem;
    }

    .info-text h1 {
        font-size: 18px;
    }

    .info-text p {
        font-size: 12px;
    }

    .container-icon {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .icon-info i {
        font-size: 28px;
    }

    .icon-info p {
        font-size: 11px;
        margin-top: 0.4rem;
        line-height: 1.3;
    }

    .text-clear h1 {
        font-size: 18px;
    }

    .text-clear p {
        font-size: 12px;
    }

    .stories-img {
        bottom: 0.8rem;
        height: 0.8rem;
    }

    .stories-img img {
        width: 45%;
    }
}


/* start of video */

.video-section {
    padding: 80px 0;
    overflow: hidden;
}

.section-title {
    font-size: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.slider {
    position: relative;
    width: 100%;
}

.viewport {
    width: 100%; /* 3 كاردات ظاهرين مع margin */
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.track {
    display: flex;
    transition: transform 0.4s ease;
}


.video-card {
    position: relative;
    width: 390px;
    height: 220px;
    margin: 0 20px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: 0.3s;
}

.video-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 40px rgba(32,224,214,0.6);
}


.thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* overlay */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(32,224,214,0.8);
    width: 190px;
    z-index: 4;
    padding: 15px;
    display: block !important;
    text-align: center;

}
.overlay::after {
content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 360px;
  box-shadow: 90px 90px 90px rgba(32,224,214,0.8);
}

.text{
    position: absolute;
    inset: 0;
    background: rgba(32,224,214,0.8);
    width: 190px;
    z-index: 4;
    padding: 15px;
    display: block !important;
    text-align: center;
}
.over-play{
    position: absolute;
    left: 85%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: black;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 20%;
    cursor: pointer;
    display: block;
    text-align: left;
}

.overlay h3 {
    font-size: 22px;
}

.overlay p {
    font-size: 14px;
    line-height: 1.4;
}

.play {
    font-size: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 1;
    background: #01c2be !important;
}

.play:hover {
    opacity: 0.1;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: white;
    color: black;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 20%;
    cursor: pointer;
  text-align: center;
}
.buttonss{
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
     margin: 0 auto;
}

.buttonss a{
text-decoration: none;
 text-align: center;
 align-items: center;
 display: flex !important;
 justify-content: center !important;
 margin: 0 auto;
 color: #01c2be;
 background: #fff;
  font-size: 30px;
}
.buttonss:hover{
    background: #01c2be;
    color: #fff;
}
.prev {
left: 23rem;

 }
.next {

right: 23rem;

 }

/* Responsive for video slider */
@media (max-width: 1200px) {
    .video-card {
        width: 320px;
        height: 180px;
        margin: 0 15px;
    }
    .prev {
        left: 15rem;
    }
    .next {
        right: 15rem;
    }
}

@media (max-width: 915px) {
   .video-card {
    position: relative;
    width: 390px;
    height: 220px;
    margin: 0 20px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: 0.3s;
}


.prev {
left: 8rem;

 }
.next {

right: 8rem;

 }

}

@media (max-width: 850px) {
    .video-card {
    position: relative;
    width: 390px;
    height: 220px;
    margin: 0 20px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: 0.3s;
}


.prev {
left: 6rem;

 }
.next {

right: 6rem;

 }
}

@media (max-width: 780px) {
    .video-card {
    position: relative;
    width: 390px;
    height: 220px;
    margin: 0 20px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: 0.3s;
}


.prev {
left: 4rem;

 }
.next {

right: 4rem;

 }
}

@media (max-width: 700px) {
    .video-card {
    position: relative;
    width: 390px;
    height: 220px;
    margin: 0 20px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: 0.3s;
}


.prev {
left: 2rem;

 }
.next {

right: 2rem;

 }
}

@media (max-width: 600px) {
    .video-card {
    position: relative;
    width: 300px;
    height: 220px;
    margin: 0 50px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: 0.3s;
}
.over-play{

    left: 70%;
    top: 45%;

    width: 45px;
    height: 45px;

}


.prev {
left: 2rem;

 }
.next {

right: 2rem;

 }

}
@media (max-width: 480px) {
    .video-card {
    position: relative;
    width: 250px;
    height: 180px;
    margin: 0 75px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: 0.3s;
}
.over-play{

    left: 50%;
    top: 45%;

    width: 45px;
    height: 45px;

}


.prev {
left: 1rem;

 }
.next {

right: 1rem;

 }

}
@media (max-width: 398px) {
    .video-card {
    position: relative;
    width: 220px;
    height: 180px;
    margin: 0 90px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: 0.3s;
}
.over-play{

    left: 45%;
    top: 40%;

    width: 10px;
    height: 10px;

}

.buttonss a{

 width: 35px;
 color: #01c2be;
 background: #fff;
  font-size: 25px;
}


.prev {
left: 0.5rem;

 }
.next {

right: 0.5rem;

 }

}












/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

/* Popup Content */
.popup-content {
    background: transparent;
    border-radius: 25px;
    backdrop-filter: blur(100px);
    padding: 40px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.9);
    animation: popupSlide 0.4s ease;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Popup Header */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -15px;
}

.popup-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.popup-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn.close-btn{
    color: red;
     border: 1px solid red;
     font-size: 17px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1);
}
.icon-btn.close-btn:hover {
    background: 0;
    transform: scale(1);
    border: 1px solid red;
    color: red;
}

/* Total Amount */
.total-amount {
 background: transparent;
    padding: 0px;
    text-align: left;
    margin-bottom: 10px;
    font-size: 3rem;
    color: white;
    font-weight: bold;
}
/* Slider Container */
.slider-container {
    margin-bottom: -20px;
    color: white;
}

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


.slider-header label {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.value-badge {
    background: rgba(125, 180, 180, 0.3);
    color: white;
    padding: 5px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;

}

/* Custom Slider */
.custom-slider {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #7dd3c0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(125, 211, 192, 0.5);
    transition: all 0.3s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(125, 211, 192, 0.8);
}

.custom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #7dd3c0;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(125, 211, 192, 0.5);
}

.slider-value {
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 10px;

}

/* Plan Type Container */
.plan-type-container {
    margin-bottom: 30px;
}

.section-label {
    display: block;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.plan-type-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.plan-type-btn {
    padding: 2px 30px;
    background: white !important;
    color: #0e172a !important;
    border: 0;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-type-btn:hover {
    background: #01c2be !important;
    transform: translateY(-1px);
}

.plan-type-btn.active {
 background: #01c2be !important;
    border-color: #01c2be !important;
    box-shadow: 0 5px 15px rgba(125, 211, 192, 0.4);
    border: 0;
}

/* Next Button */
.next-btn {
    display: block;
    width: 100%;
    padding: 2px;
    background: #01c2be;
    color: #0e172a;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 30px;

}

.next-btn:hover {
    background: #01c2be;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(125, 211, 192, 0.4);
}




/* Custom Scrollbar for Popup */
.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 192, 0.5);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 211, 192, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        padding: 25px;
    }

    .total-amount {
        font-size: 3rem;
    }

    .plan-type-buttons {
        grid-template-columns: 1fr;
    }

    .slider-value {
        font-size: 1.5rem;
    }
}




/* Form Styles */

.popup-step {
    background: transparent;
    backdrop-filter: blur(5px);
    padding: 25px;
    max-width: 600px;
    border-radius: 20px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.9);
    animation: popupSlide 0.4s ease;
}


@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.registration-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 20px;
    background: rgba(14, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    border-color: #01c2be;
    box-shadow: 0 0 10px rgba(1, 194, 190, 0.3);
}

.form-group select {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);

}

.form-group select option {
    background: #0e172a;
    color: white;
}

.form-group select {
    cursor: pointer;
    color: white;
    font-size: 1.1rem;
}

.form-group select option {
    background: #0e172a;
    color: white;
    font-size: 1rem;
    padding: 10px;
}


.form-group select:valid {
    color: white;
}

/* Phone Input */
.phone-input {
    display: flex;
    align-items: center;
    background: rgba(14, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.country-code span {
    color: #0e172a;
    font-size: 1rem;
    font-weight: 900;
}

.phone-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    margin: 0;
}

/* Preference Buttons */
.preference-section {
    margin-bottom: 30px;
}

.preference-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.section-label{
    font-size: 19px;
    font-weight: 900;
}

.preference-btn {
    padding: 10px 20px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preference-btn:hover {
    border-color: #01c2be;
    background: rgba(1, 194, 190, 0.1);
     color: #0e172a !important;
}

.preference-btn.active {
    background: #01c2be;
    border-color: #01c2be;
    color: #0e172a !important;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 2px;
    background: #01c2be !important;
    color: #0e172a !important;
    border: none !important;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(1, 194, 190, 0.4);
}




/* Startb of step3 */


/* Subject Selection */
.section-calendar{
background: transparent;
    backdrop-filter: blur(5px);
    padding: 25px;
    max-width: 600px;
    border-radius: 20px;
    width: 90%;
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.9);
    animation: popupSlide 0.4s ease;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.subject-selection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 20px 0;
}




.subject-btn {
    padding: 8px 15px;
    background: white;
    color: #0e172a;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.subject-btn:hover {
    background: rgba(1, 194, 190, 0.8);
    color: #0e172a;
    transform: translateY(-2px);
}

.subject-btn.active {
    background: #01c2be;
    color: #0e172a;
    box-shadow: 0 5px 15px rgba(1, 194, 190, 0.4);
}

/* Calendar Title */
.calendar-title {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: left;
}

.calendar-title .duration {
    color: #01c2be;
    font-weight: 600;
}

/* Calendar Container */
.calendar-container {
    background: rgba(14, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.calendar-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.month-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-nav:hover {
    border-color: #01c2be;
    background: rgba(1, 194, 190, 0.1);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-header {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 40px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: rgba(1, 194, 190, 0.2);
    border-color: #01c2be;
}

.calendar-day.selected {
    background: #01c2be;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(1, 194, 190, 0.4);
}

.calendar-day.disabled {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    background: transparent;
}

.calendar-day.disabled:hover {
    background: transparent;
    border-color: transparent;
}

.calendar-day.today {
    border: 2px solid #01c2be;
}

/* Complete Button */
.complete-btn {
    width: 100%;
    padding: 1px;
    background: #01c2be;
    color: #0e172a;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(1, 194, 190, 0.4);
}
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 10px;
}


/* Responsive */
@media (max-width: 768px) {
    .subject-selection {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-container {
        padding: 15px;
    }

    .calendar-day {
        font-size: 0.9rem;
    }
}





/* STEP 4: SUCCESS PAGE  */

#step4 {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: blur(5px);
    padding: 10px;
    max-width: 600px;
    border-radius: 20px;
    width: 80%;
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.9);
    animation: popupSlide 0.4s ease;
}

.success-container {
    text-align: center;
    padding: 20px 20px;
    position: relative;
}

/* Close Button */
.close-btn-success {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid red;
    color: red;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
}

.close-btn-success:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Welcome Text */
.success-welcome {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.4;
}

.brand-name {
    color: #01c2be;
    font-weight: 700;
}




/* Congrats Animation */
.congrats-animation {
    margin: 40px 0;
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.congrats-icon {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.congrats-icon svg {
    width: 100%;
    height: 100%;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.congrats-icon svg line {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.congrats-icon svg text {
    animation: twinkle 1s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.congrats-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 900;
    color: #FF6B9D;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.5),
                     0 0 20px rgba(255, 107, 157, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.8),
                     0 0 30px rgba(255, 107, 157, 0.5),
                     0 0 40px rgba(255, 107, 157, 0.3);
    }
}

/* Home Button */
.home-btn {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    padding: 2px 40px;
    background: white;
    color: #0e172a;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.home-btn:hover {
    background: #01c2be;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(1, 194, 190, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .success-welcome {
        font-size: 1.4rem;
    }

    .congrats-icon {
        width: 160px;
        height: 160px;
    }

    .congrats-text {
        font-size: 1.5rem;
    }

    .home-btn {
        font-size: 1.1rem;
        padding: 2px 30px;
    }
}



/*  RESPONSIVE MODAL   */


@media (max-width: 768px) {
    .popup-content,
    .popup-step,
    .section-calendar,
    #step4 {
        padding: 25px 20px;
        width: 95%;
    }

    .popup-header h2 {
        font-size: 1.3rem;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .total-amount {
        font-size: 2.5rem;
    }

    .slider-value {
        font-size: 1.6rem;
    }

    .plan-type-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plan-type-btn {
        font-size: 1.1rem;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .preference-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .subject-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .calendar-day {
        width: 35px;
        font-size: 0.95rem;
    }
}

/* من 480px لـ 381px */
@media (max-width: 480px) {
    .popup-content,
    .popup-step,
    .section-calendar,
    #step4 {
        padding: 20px 15px;
        width: 98%;
    }

    .popup-header {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }

    .popup-header h2 {
        font-size: 1.1rem;
        width: 100%;
    }

    .icon-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .total-amount {
        font-size: 2rem;
        text-align: center;
    }

    .slider-header label,
    .section-label {
        font-size: 0.95rem;
    }

    .value-badge {
        padding: 4px 15px;
        font-size: 0.85rem;
    }

    .slider-value {
        font-size: 1.4rem;
    }

    .plan-type-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Form */
    .form-group input,
    .form-group select {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .country-code {
        padding: 12px 10px;
    }

    .flag-icon {
        width: 20px;
        height: 14px;
    }

    .country-code span {
        font-size: 0.9rem;
    }

    .preference-btn,
    .subject-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .next-btn,
    .submit-btn,
    .complete-btn {
        padding: 12px;
        font-size: 1.1rem;
    }

    /* Calendar */
    .calendar-container {
        padding: 15px;
    }

    .calendar-header h3 {
        font-size: 1.1rem;
    }

    .calendar-day {
        width: 32px;
        font-size: 0.9rem;
    }

    .day-header {
        font-size: 0.85rem;
    }

    /* Success Page */
    .success-welcome {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .congrats-icon {
        width: 150px;
        height: 150px;
    }

    .congrats-text {
        font-size: 1.4rem;
    }
}

/* من 380px لـ 301px */
@media (max-width: 380px) {
    .popup-content,
    .popup-step,
    .section-calendar,
    #step4 {
        padding: 15px 10px;
    }

    .popup-header h2 {
        font-size: 1rem;
    }

    .icon-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .total-amount {
        font-size: 1.8rem;
    }

    .slider-header label,
    .section-label {
        font-size: 0.9rem;
    }

    .value-badge {
        padding: 3px 12px;
        font-size: 0.8rem;
    }

    .slider-value {
        font-size: 1.2rem;
    }

    .plan-type-btn {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    /* Form */
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .country-code {
        padding: 10px 8px;
    }

    .country-code span {
        font-size: 0.85rem;
    }

    .preference-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .subject-btn {
        padding: 10px 10px;
        font-size: 0.85rem;
    }

    .subject-selection {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .next-btn,
    .submit-btn,
    .complete-btn {
        padding: 10px;
        font-size: 1rem;
    }

    /* Calendar */
    .calendar-container {
        padding: 12px;
    }

    .calendar-header h3 {
        font-size: 1rem;
    }

    .month-nav {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .calendar-day {
        width: 28px;
        font-size: 0.85rem;
    }

    .day-header {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    .calendar-days-grid {
        gap: 6px;
    }

    /* Success Page */
    .success-welcome {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .congrats-icon {
        width: 130px;
        height: 130px;
    }

    .congrats-text {
        font-size: 1.2rem;
    }
}

/* من 300px وأقل */
@media (max-width: 300px) {
    .popup-content,
    .popup-step,
    .section-calendar,
    #step4 {
        padding: 12px 8px;
        width: 98%;
    }

    .popup-header h2 {
        font-size: 0.9rem;
    }

    .icon-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .close-btn-success {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .total-amount {
        font-size: 1.5rem;
    }

    .slider-header label,
    .section-label {
        font-size: 0.8rem;
    }

    .value-badge {
        padding: 2px 10px;
        font-size: 0.7rem;
    }

    .slider-value {
        font-size: 1rem;
    }

    .custom-slider {
        height: 6px;
    }

    .custom-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    .plan-type-buttons {
        gap: 8px;
    }

    .plan-type-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Form */
    .form-row {
        gap: 8px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group select {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .phone-input {
        border-radius: 10px;
    }

    .country-code {
        padding: 8px 6px;
        gap: 5px;
    }

    .flag-icon {
        width: 16px;
        height: 11px;
    }

    .country-code span {
        font-size: 0.75rem;
    }

    .preference-buttons {
        gap: 8px;
    }

    .preference-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .subject-selection {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .subject-btn {
        padding: 8px;
        font-size: 0.75rem;
    }

    .next-btn,
    .submit-btn,
    .complete-btn {
        padding: 8px;
        font-size: 0.9rem;
    }

    /* Calendar */
    .calendar-title {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .calendar-container {
        padding: 10px;
        border-radius: 12px;
    }

    .calendar-header {
        margin-bottom: 8px;
    }

    .calendar-header h3 {
        font-size: 0.9rem;
    }

    .month-nav {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .calendar-grid,
    .calendar-days-grid {
        gap: 4px;
    }

    .day-header {
        font-size: 0.7rem;
        padding: 6px 0;
    }

    .calendar-day {
        width: 24px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    /* Success Page */
    #step4 {
        min-height: 300px;
        padding: 10px;
    }

    .success-container {
        padding: 15px 10px;
    }

    .success-welcome {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .congrats-icon {
        width: 110px;
        height: 110px;
    }

    .congrats-text {
        font-size: 1rem;
    }

    .home-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}







