@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: roboto;
    box-sizing: border-box;
    font-size: 12px;
}

link[rel="icon"] {
    width: 192px;
    height: 192px;
}

.main-form-container {
    height: auto;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; /* Reduced padding */
    background-color: #f9f9f9;
}

.main-form-container .form-container {
    height: auto;
    width: 100%;
    max-width: 500px; /* Reduced max-width */
    padding: 1px; /* Reduced padding */
}

.main-form-container .header-section {
    text-align: center;
    margin-bottom: 15px; /* Reduced margin */
}

.main-form-container .header-section .logo img {
    width: 120px; /* Reduced logo size */
    height: auto;
}

.main-form-container .header-section .heading {
    margin-top: 8px; /* Reduced margin */
    display: flex;
    justify-content: center;
}

.main-form-container .header-section .heading h1 {
    font-size: 20px; /* Reduced font size */
    font-weight: 400;
}

.main-form-container .header-section .heading h1 a {
    text-decoration: none;
    color: #333;
}

.main-form-container .header-section .heading span {
    margin: 0 8px; /* Reduced margin */
    height: 24px; /* Reduced height */
    width: 2px;
    background-color: #d67b2c;
    border-radius: 20px;
}

.main-form-container .header-section .heading .heading-buttons {
    background-color: transparent;
    border: none;
    font-size: 18px; /* Reduced font size */
    cursor: pointer;

    &:hover {
        color: #d67b2c;
    }
}

.main-form-container .header-section .heading .heading-buttons:hover~span {
    background-color: black;
}

.main-form-container .form {
    height: auto;
    width: 100%;
}

.main-form-container h2 {
    font-size: 16px; /* Reduced font size */
    font-weight: normal;
    margin-bottom: 8px; /* Reduced margin */
}

.forms-wrapper .company-form .company-heading {
    font-size: 16px; /* Reduced font size */
    font-weight: normal;
}

.main-form-container .form form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced gap */
}

.main-form-container .form form .name {
    display: flex;
    width: 100%;
    gap: 15px; /* Reduced gap */
}

.main-form-container .form form .name .first-name {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.main-form-container .form form .name .first-name .div {
    width: 100%;
    height: 35px; /* Reduced height */
    border-radius: 6px; /* Reduced border radius */
    background-color: rgb(226, 226, 226);
    display: flex;
    align-items: center;
    padding: 0 12px; /* Reduced padding */
    gap: 8px; /* Reduced gap */
}

.main-form-container .form form .email,
.main-form-container .form form .phone,
.main-form-container .form form .password,
.main-form-container .form form .otp-section,
.main-form-container .form form .company-name,
.main-form-container .form form .cnic {
    width: 100%;
}

.main-form-container .form form .otp-section {
    margin-bottom: -20px; /* Adjusted margin */
    position: relative;
}

.main-form-container .form form label {
    font-size: 12px; /* Reduced font size */
    color: gray;
    margin-bottom: 4px; /* Reduced margin */
}

.main-form-container .form form .email-input,
.main-form-container .form form .phone-input,
.main-form-container .form form .password-input,
.main-form-container .form form .otp-input,
.main-form-container .form form .company-name-input,
.main-form-container .form form .cnic-input {
    width: 100%;
    height: 35px; /* Reduced height */
    border-radius: 6px; /* Reduced border radius */
    background-color: rgb(226, 226, 226);
    display: flex;
    align-items: center;
    padding: 0 12px; /* Reduced padding */
    gap: 8px; /* Reduced gap */
}

.inp-btn {
    display: flex;
    width: 100%;
    height: 0px; /* Reduced height */
    align-items: center;
    gap: 8px; /* Reduced gap */
}

.main-form-container .form form .first-name i,
.main-form-container .form form .email-input i,
.main-form-container .form form .phone-input i,
.main-form-container .form form .password-input i,
.main-form-container .form form .otp-input i,
.main-form-container .form form .company-name-input i,
.main-form-container .form form .cnic-input {
    font-size: 14px; /* Reduced icon size */
    color: #d67b2c;
    margin-right: 8px; /* Reduced margin */
}

.main-form-container .form form input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 14px; /* Reduced font size */
    outline: none;
}

.main-form-container .form form input::placeholder {
    font-size: 12px; /* Reduced placeholder font size */
}

.main-form-container .form form button {
    width: 100%;
    height: 35px; /* Reduced height */
    border-radius: 6px; /* Reduced border radius */
    background-color: #E67E22;
    border: none;
    font-size: 14px; /* Reduced font size */
    font-weight: 400;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-form-container .form form button:hover {
    background-color: #d67b2c;
}

/* Address Inputs */
.address-inputs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.address-info {
    margin-top: 15px; /* Reduced margin */
}

.address-info label {
    font-size: 14px; /* Reduced font size */
    color: gray;
}

.address-input,
.address-2-input {
    width: 100%;
    height: 40px; /* Reduced height */
    border-radius: 6px; /* Reduced border radius */
    background-color: rgb(226, 226, 226);
    margin-top: 8px; /* Reduced margin */
    display: flex;
    align-items: center;
    padding: 0 12px; /* Reduced padding */
}

.address-input input,
.address-2-input input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 14px; /* Reduced font size */
    outline: none;
}

.additional-address {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px; /* Reduced gap */
    margin-top: 8px; /* Reduced margin */
}

.additional-address .city,
.additional-address .state,
.additional-address .postal-code,
.additional-address .country {
    width: 100%;
    height: 30px; /* Reduced height */
    border-radius: 6px; /* Reduced border radius */
    background-color: rgb(226, 226, 226);
    display: flex;
    align-items: center;
    padding: 0 12px; /* Reduced padding */
}

.additional-address input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 14px; /* Reduced font size */
    outline: none;
}

/* Terms and Conditions */
.terms-and-conditions {
    margin-top: 15px; /* Reduced margin */
    display: flex;
    align-items: center;
}

.company-terms {
    padding-bottom: 0px;
    margin-bottom: 15px; /* Reduced margin */
}

.terms-and-conditions input[type="checkbox"] {
    margin-right: 0px;
    width: 14px; /* Reduced size */
    height: 14px; /* Reduced size */
    cursor: pointer;
    accent-color: #d67b2c;
}

.main-form-container .form form .terms-and-conditions input {
    width: 10%;
    margin-bottom: 4px; /* Reduced margin */
}

.terms-and-conditions label {
    font-size: 12px; /* Reduced font size */
    color: gray;
}

.terms-and-conditions a {
    color: #d67b2c;
    text-decoration: none;
}

.terms-and-conditions a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 40px; /* Reduced padding */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 15px; /* Reduced padding */
    border: 1px solid #888;
    width: 90%;
    max-width: 500px; /* Reduced max-width */
    border-radius: 8px; /* Reduced border radius */
    max-height: 70vh; /* Reduced max-height */
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 20px; /* Reduced font size */
    font-weight: bold;
}


.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    font-size: 18px; /* Reduced font size */
    font-weight: 600;
    color: #333;
    margin-bottom: 12px; /* Reduced margin */
    border-bottom: 2px solid #E67E22;
    padding-bottom: 8px; /* Reduced padding */
}

.modal-content h3 {
    font-size: 16px; /* Reduced font size */
    font-weight: 500;
    color: #444;
    margin-top: 12px; /* Reduced margin */
    margin-bottom: 8px; /* Reduced margin */
}

.modal-content p {
    font-size: 12px; /* Reduced font size */
    line-height: 1.5; /* Adjusted line height */
    color: #555;
    margin-bottom: 8px; /* Reduced margin */
}

.modal-content ul {
    margin-left: 16px; /* Reduced margin */
    margin-bottom: 12px; /* Reduced margin */
}

.modal-content ul li {
    font-size: 12px; /* Reduced font size */
    line-height: 1.5; /* Adjusted line height */
    color: #555;
    margin-bottom: 4px; /* Reduced margin */
}

.modal-content a {
    color: #E67E22;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 4px; /* Reduced width */
}

::-webkit-scrollbar-thumb {
    background-color: #d67b2c;
    border-radius: 8px; /* Reduced border radius */
}

::-webkit-scrollbar-track {
    background-color: #8b4e18;
    border-radius: 8px; /* Reduced border radius */
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-form-container .form-container {
        padding: 10px; /* Reduced padding */
    }

    .main-form-container .header-section .logo img {
        width: 100px; /* Further reduced logo size */
    }

    .main-form-container .header-section .heading h1 {
        font-size: 18px; /* Further reduced font size */
    }

    .main-form-container .form form input,
    .main-form-container .form form input::placeholder {
        font-size: 12px; /* Further reduced font size */
    }

    .additional-address {
        grid-template-columns: 1fr;
    }
}

.btns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn {
    display: flex;
    width: 89%;
    gap: 15px; /* Reduced gap */
    justify-content: center;
}

.btn button {
    width: 100%;
}

.reg-btn {
    margin-top: 8px; /* Reduced margin */
    width: 90%;
}

.signin-link {
    margin: 15px; /* Reduced margin */
}

/* Popup Styling */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 15px; /* Reduced padding */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 80%;
    max-width: 500px; /* Reduced max-width */
    max-height: 70vh; /* Reduced max-height */
    overflow-y: auto;
}

.popup-content {
    position: relative;
}

.closePopupButton {
    position: absolute;
    top: 8px; /* Reduced top position */
    right: 8px; /* Reduced right position */
    font-size: 20px; /* Reduced font size */
    cursor: pointer;
}

.terms-content {
    margin-top: 15px; /* Reduced margin */
}

/* Overlay Styling */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.password-div {
    display: flex;
    gap: 15px; /* Reduced gap */
}

.pass,
.passc {
    display: flex;
    width: 100%;
}

.otp-div {
    display: flex;
    gap: 8px; /* Reduced gap */
    margin-bottom: 8px; /* Reduced margin */
    justify-content: center;
    align-items: center;
}

.company-info {
    display: flex;
    gap: 15px; /* Reduced gap */
}
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #4A90E2;  /* Blue color */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  position: absolute;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loader container text */
.loader-text {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  color: #4A90E2;
}


@media (max-width: 500px) {
    .name,
    .password-div {
        display: flex;
        flex-direction: column;
    }

    .company-info {
        display: flex;
        flex-direction: column;
    }

    .main-form-container .form form .password-div {
        width: 100%;
    }

    .main-form-container .form form .password-div .password-input {
        width: 100%;
    }

    .main-form-container .form form .password-div .password-input input {
        width: 100%;
    }

    .main-form-container .form form .first-name i,
    .main-form-container .form form .email-input i,
    .main-form-container .form form .phone-input i,
    .main-form-container .form form .password-input i,
    .main-form-container .form form .otp-input i,
    .main-form-container .form form .company-name-input i,
    .main-form-container .form form .cnic-input {
        font-size: 16px; /* Further reduced icon size */
        margin-right: 4px; /* Further reduced margin */
    }

    .inp-btn {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .main-form-container .form form .otp-input {
        width: 85%;
    }

    .otp-div {
        display: flex;
        flex-direction: column;
        gap: 23px;
    }

    .main-form-container .form form label {
        font-size: 10px; /* Further reduced font size */
        color: gray;
        margin-bottom: 4px; /* Further reduced margin */
    }

    .main-form-container .form form .otp-section {
        margin-bottom: -30px; /* Adjusted margin */
    }

    .main-form-container .form form input::placeholder {
        font-size: 10px; /* Further reduced placeholder font size */
    }
}