@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
:root {
    --primary-color: #000;
}
body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.container{
    position: relative;
    max-width: 1400px;
    width: 100%;
    border-radius: 6px;
    padding: 30px;
    margin: 0 15px;
    background-color: #ffffff;
    box-shadow: 0 5px 100px rgba(0,0,0,0.1);
    height: 90vh; /* Set a fixed height to the container */
    overflow-y: auto;
    overflow-x: hidden;
}
.container {
    font-size: 13px;
    font-weight: 500;
}
.container header{
    padding-top: 60px;
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
.logo {
    position: absolute;
    top: 15px;
    right: 10px;
    width: 85px; 
    height: auto; 
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center; 
    text-align: center; 
}
.container header::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 27px;
    border-radius: 8px;
    background-color: #4070f4;
}
.container form{
    position: relative;
    margin-top: 16px;
    max-height: 100%;
    background-color: #fff;
}
.container form .form{
    position: absolute;
    background-color: #fff;
    transition: 0.3s ease;
}
.container form .form.second{
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
}
.input-field input[type="checkbox"][name="terms"] {
    transform: scale(1.5); /* Increase the size of the checkbox */
    -webkit-transform: scale(1.5); /* For Safari */
    margin-right: 12px; /* Optional: Add margin between checkbox and label */
    vertical-align: middle; /* Align the checkbox vertically */
}
.input-field input[type="checkbox"][name="terms"] + label {
    font-size: 14px; /* Adjust font size */
    font-weight: normal; /* Adjust font weight if needed */
    color: #333; /* Adjust text color */
    margin: 0; /* Remove default margin */
    align-items: center; /* Center vertically */
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

/* Close button style */
#closeBtn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #4070f4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
form.secActive .form.second{
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
form.secActive .form.first{
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
}

.container form .title{
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    margin: 6px 0;
    color: #333;
    align-items: end;
}
.container form .fields{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.container form .fields2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

form .fields .input-field{
    display: flex;
    width: calc(100% / 2 - 15px);
    flex-direction: column;
    margin: 4px 0;
}
.input-field label{
    font-size: 12px;
    font-weight: 500;
    color: #2e2e2e;
    margin-bottom: 4px;
}
.input-field input, select{
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
}
.input-field.required label::after {
  content: " * (Wajib Diisi)";
  color: red;
  display: inline;
  font-size: 10px;
}
.details-keterangan.required label::after {
  content: " * (Wajib Diisi)";
  color: red;
  display: inline;
  font-size: 10px;
}
.input-f.required label::after {
  content: " * (Wajib Diisi)";
  color: red;
  display: inline;
  font-size: 10px;
}
.input-field input :focus,
.input-field select:focus{
    box-shadow: 0 3px 6px rgba(0,0,0,0.13);
}
.input-field input[type="date"]{
    color: #707070;
}
.input-field input[type="date"]:valid{
    color: #333;
}
.input-field input[type="radio"] {
    appearance: none;
    display: flex;
    align-items: center; 
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    margin: 1px auto;
    cursor: pointer;
}
.input-field select {
    width: 100%;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
}
.input-field option {
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
}
.input-field input[type="radio"]:checked {
    background-color: #000000;
    border-color: #000000;
}
.input-field textarea {
    resize: none; /* Prevents resizing */
    white-space: pre-wrap; /* Allows text to wrap within the fixed width and height */
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 8px 15px; /* Padding adjustments for better appearance */
    height: 120px; /* Fixed height */
    width: 653px; /* Fixed width */
    margin: 8px 0;
}

/*input-f */

form .fields .input-f{
    display: flex;
    width: calc(100% / 2 - 15px);
    flex-direction: column;
    margin: 4px 0;
}
.input-f label{
    font-size: 12px;
    font-weight: 500;
    color: #2e2e2e;
}
.input-f {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align the label and input to the start (left) */
}
.input-f input :focus,
.input-f select:focus{
    box-shadow: 0 3px 6px rgba(0,0,0,0.13);
}
.input-f input, select{
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    width: 652px;
    margin: 8px 0;
}
.input-f textarea {
    resize: none; /* Prevents resizing */
    white-space: pre-wrap; /* Allows text to wrap within the fixed width and height */
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 8px 15px; /* Padding adjustments for better appearance */
    height: 200px; /* Fixed height */
    width: 1340px; /* Fixed width */
    margin: 8px 0;
}
.clear-button {
    color: var(--primary-color);
}
form .fields .textPaket{
    display: flex;
    width: calc(100% / 3 - 15px);
    flex-direction: column;
    margin: 8px 0;
}
.container form button, .backBtn{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    max-width: 200px;
    width: 100%;
    border: none;
    outline: none;
    color: #fff;
    border-radius: 5px;
    margin: 25px 0;
    background-color: #4070f4;
    transition: all 0.3s linear;
    cursor: pointer;
}
.container form .btnText{
    font-size: 14px;
    font-weight: 400;
}
form button:hover{
    background-color: #265df2;
}
form button i,
form .backBtn i{
    margin: 0 6px;
}
form .backBtn i{
    transform: rotate(180deg);
}
form .buttons{
    display: flex;
    align-items: center;
}
form .buttons 
form .buttons button , .backBtn{
    margin-right: 14px;
}

.email {
    width: 430px;
}

.notification-panel {
    position: fixed; /* Change to fixed position */
    top: 0;
    left: 0; /* Add left: 0 to make it span the entire width */
    width: 100%;
    padding: 10px;
    text-align: center;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease-in-out;
}

.notification-panel.success {
    background-color: green;
    color: white;
}

.notification-panel.error {
    background-color: red;
    color: white;
}

@media (max-width: 1200px) {
    form .fields .input-field,
    form .fields .input-f {
        width: 100%; /* Make all fields full-width */
    }
    .input-f label,
    .input-field label {
        font-size: 14px; /* Adjust label font size */
    }
    form .fields .input-field input,
    form .fields .input-field select,
    form .fields .input-f input,
    form .fields .input-f select,
    form .fields .input-f textarea {
        width: 100%; /* Full-width input/select/textarea */
    }
    form .fields .input-f textarea {
        max-width: 100%; /* Limit the max width of the textarea to 100% */
    }
}

@media (max-width: 550px) {
    form .fields .input-field,
    form .fields .input-f {
        width: 100%; /* Make all fields full-width for smaller screens */
    }
    form .fields .input-field input,
    form .fields .input-field select,
    form .fields .input-f input,
    form .fields .input-f select,
    form .fields .input-f textarea {
        width: 100%; /* Full-width input/select/textarea for smaller screens */
    }
    
}

