header, footer {
    position: relative;
    z-index: 10; 
}

.reg-container {
    position: relative;
    max-width: 1300px;
    width: 100%;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 6px;
    padding: 30px;
    margin-top: 150px;
    box-shadow: 0 5px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.reg-container header {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: var(--main-color);
}

.reg-container header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 27px;
    background-color: var(--main-color);
    border-radius: 8px;
}

.reg-container form {
    position: relative;
    margin-top: 16px;
    min-height: 1400px;
    background-color: #fff;
    overflow: hidden;
    padding: 20px 40px;
}

.reg-container form .second {
    min-height: 400px;
}

.reg-container form .form {
    position: absolute;
    right: 20px;
    left: 20px;
    background-color: #fff;
    transition: 0.3s ease;
}

.reg-container form .form.second {
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
}

.reg-container form.setActive .form.second {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.reg-container form.setActive .form.first {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
}

.reg-container form .title {
    display: block;
    font-size: 18px;
    font-weight: 500;
    margin: 6px 0 8px;
    color: var(--secondary-color);
}

.reg-container form .fields {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.reg-container form .fields .input-field {
    display: flex;
    flex-direction: column;
    width: calc(100% / 3 - 15px);
    margin: 5px 0 20px;
}

.reg-container form .fields .radio {
    display: flex;
    flex-direction: row;
}

.reg-container form .fields .radio label {
    margin-left: 5px;
    min-width: 300px;
}

.reg-container form .fields .choose {
    width: calc(100% / 2 - 15px);
}

.reg-container .input-field label {
    font-size: 14px;
    font-weight: 500;
    color: #2e2e2e;
}

.reg-container .input-field input {
    height: 42px;
    margin: 8px 0;
    padding: 0 15px;
    outline: none;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.reg-container .input-field input:is(:focus, :valid) {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.13);
}

.reg-container .input-field input[type="radio"] {
    height: 20px;
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    border-radius: none;
    font-size: 2px;
    font-weight: normal;
    color: none;
    box-shadow: none;
}

.reg-container form .educational {
    margin-top: 50px;
}

.reg-container form button,
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    max-width: 200px;
    width: 100%;
    color: #fff;
    background-color: var(--secondary-color);
    border: none;
    outline: none;
    border-radius: 5px;
    margin: 20px 0;
    transition: all 0.3s linear;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
}

.reg-container form button:hover {
    background-color: var(--main-color);
}

.reg-container form button i,
.reg-container form .back-btn i {
    margin: 0 6px;
}

.reg-container form .back-btn i {
    transform: rotate(180deg);
}

.reg-container form .buttons {
    display: flex;
    align-items: center;
}

.reg-container form .buttons button,
.back-btn {
    margin-right: 14px;
}

.reg-container form .hidden {
    display: none;
}

/* Coming Soon */
.coming-soon {
    position: fixed; /* Use fixed to cover the entire viewport */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: rgba(0, 44, 82, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    overflow: hidden;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
    z-index: 5; /* Lower than header and footer */
}

.coming-soon h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: slideIn 1.5s ease-out;
}

.coming-soon p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeIn 2.5s ease-in-out;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: slideUp 2s ease-out;
}

.countdown div {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.countdown div:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.countdown span {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
    .reg-container {
      margin-top: 100px;
      padding: 15px;
    }
    
    .reg-container form {
      padding: 15px;
    }
    
    .reg-container form .fields .input-field {
      width: 100%;
    }
    
    .reg-container form .buttons {
      flex-direction: column;
    }
    
    .reg-container form button,
    .back-btn {
      margin-right: 0;
      margin-bottom: 10px;
      width: 100%;
    }
  }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes moveBackground {
    from { transform: translate(0, 0); }
    to { transform: translate(20px, 20px); }
}