/*Styling signup page*/
@font-face {
    font-family: montLight;
    src: url('../fonts/montLight.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: montHeavy;
    src: url('../fonts/montHeavy.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: montRegular;
    src: url('../fonts/montRegular.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: montBold;
    src: url('../fonts/montBold.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: montSemiBold;
    src: url('../fonts/montSemibold.otf') format('opentype');
    font-weight: normal;
}

:root {
    --primary-color: #30A098;
    --secondary-color: #EDED88;
    --text-color: #000;
    --dark-green: #273F3C;
}

body {
    font-family: montRegular;
    overflow-x: hidden;
}

.main-signup-container {
    width: 100%;
    background-color: var(--primary-color);
    background-image: url('../img/pattern_1.png');
    background-repeat: no-repeat;
    background-size: auto 90%;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 350px;
    margin-bottom: -25px;
    margin-top: 30px;
}

img {
    height: auto;
    max-width: 170px;
    float: left;
    margin-left: 15px;
}

h1 {
    font-family: montBold;
    font-size: 30pt;
    color: var(--secondary-color);
    margin: 0 auto;
    margin-bottom: -20px;
}

h2 {
    font-family: montSemiBold;
    font-size: 20pt;
    text-align: left;
    color: #fff;
    margin-top: -10px;
    margin-left: 20px;
}

.signup-form > form {
    width: 60%;
    border-radius: 5px;
    margin-left: 20%;
    margin-bottom: 10%;
}

input::placeholder {
    color: #b8b7b7;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="password"],
.form-table input[type="tel"],
.form-table input[type="number"],
.form-table input[type="date"],
.form-table input[type="month"],
.form-table input[type="week"],
.form-table input[type="time"],
.form-table input[type="datetime-local"] {
    width: 105%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Hide the default checkbox */
.checkbox-input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Custom checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    user-select: none;
    padding-left: 35px;
    min-height: 25px;
}

/* Checkbox box */
.checkbox-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Checkmark (hidden by default) */
.checkbox-label:after {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Hover state */
.checkbox-label:hover:before {
    background-color: var(--secondary-color);
    border-color: #000;
}

/* Checked state */
.checkbox-input:checked + .checkbox-label:before {
    background-color: #000;
    border-color: var(--primary-color);
}

.checkbox-input:checked + .checkbox-label:after {
    opacity: 1;
    border-color: var(--secondary-color);
}

/* Focus state */
.checkbox-input:focus + .checkbox-label:before {
    box-shadow: 0 0 0 3px rgba(49, 160, 153, 0.3);
}

/* Disabled state */
.checkbox-input:disabled + .checkbox-label {
    color: #aaa;
    cursor: not-allowed;
}

.checkbox-input:disabled + .checkbox-label:before {
    background-color: #eee;
    border-color: #ddd;
}

/* Custom Select Styling */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    font-size: 12px;
    color: var(--primary-color);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select {
    width: 105%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    cursor: pointer;
    color: #b8b7b7;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 160, 153, 0.2);
}

input[type="radio"] {
    margin-right: 10px;
}

.form-label {
    font-size: 9pt;
    border-radius: 50px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 10px 20px;
    width: 50%;
}

.step {
    display: none;
    padding: 30px;
}

.step.active {
    display: block;
}

.button-container {
    overflow: auto;
    margin-top: 20px;
    text-align: right;
}

.button-container button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button.prev {
    background-color: #f1f1f1;
    color: var(--primary-color);
    float: left;
    margin-left: 50%;
    border-radius: 50px;
    height: 50px;
    width: 200px;
}

button.next {
    background-color: var(--dark-green);
    color: white;
    float: right;
    border-radius: 50px;
    height: 50px;
    width: 200px;
    margin-right: 30px;
}

button[type="submit"] {
    background-color: var(--dark-green);
    color: white;
    float: right;
    border-radius: 50px;
    height: 50px;
    width: 200px;
    margin-right: 30px;
}

.error {
    color: rgb(255, 177, 177);
    font-size: 8pt;
    margin-top: 5px;
    padding: 5px 10px;
}

.success {
    color: #a6fba6;
    font-size: 8pt;
    margin-top: 5px;
    padding: 5px 10px;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        font-family: montRegular;
        background-color: var(--primary-color);
        align-items: center;
        justify-content: center;
        display: flex;
        margin: 0;
        overflow-x: hidden;
    }

    .main-signup-container {
        width: 100vw;
        overflow: hidden;
    }

    .signup-form > form {
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
    }

    .signup-header {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100vw;
        margin-left: 0;
        padding: 0 20px;
    }
    
    .signup-logo {
        width: 100%;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    img {
        width: 50%;
        max-width: 170px;
        margin: 0 auto;
        float: none;
        margin-bottom: 10px;
    }

    h1 {
        font-size: 24pt;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }

    h2 {
        font-size: 16pt;
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    button.prev,
    button.next,
    button[type="submit"] {
        width: 100%;
        margin: 10px 0;
        float: none;
    }

    .button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    table {
        display: block;
    }

    tbody {
        display: block;
    }

    tr {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }

    td {
        display: block;
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

    .form-table input[type="text"],
    .form-table input[type="email"],
    .form-table input[type="password"],
    .form-table input[type="tel"],
    .form-table input[type="number"],
    .form-table input[type="date"],
    .form-table input[type="month"],
    .form-table input[type="week"],
    .form-table input[type="time"],
    .form-table input[type="datetime-local"],
    select {
        width: 100%;
        padding: 12px;
    }
    
    .footer-signup {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }
    
    p {
        font-size: 10pt;
        color: var(--dark-green);
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }
}