* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'myfont'; 
  src: url('/bootstrap/font/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body {
    font-family: 'myfont', sans-serif;
    min-height: 100vh;
    background-color: #f3f3e9;
    background-image:
        radial-gradient(
            ellipse 55% 40% at 0% 10%,
            rgba(148, 181, 137, 0.38) 0%,
            rgba(148, 181, 137, 0.12) 48%,
            transparent 75%
        ),
        radial-gradient(
            ellipse 50% 45% at 100% 35%,
            rgba(195, 207, 157, 0.38) 0%,
            rgba(195, 207, 157, 0.12) 50%,
            transparent 75%
        ),
        radial-gradient(
            ellipse 65% 45% at 45% 100%,
            rgba(216, 226, 199, 0.48) 0%,
            transparent 72%
        ),
        linear-gradient(
            125deg,
            #edf2e6 0%,
            #f8f5e9 45%,
            #e8eee1 100%
        );

    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.registration-container {
    max-width: 1500px;
    margin: 50px auto;
    padding: 0 100px;
    position: relative;
    z-index: 1;
    margin-bottom: 120px;
}

.registration-form-container {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.registration-header {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.registration-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.registration-title {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0;
    padding: 0;
    width: 100%;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: #198754;
    margin-bottom: 12px;
    margin-top: 10px;
}

.registration-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.tab-navigation {
    display: none;
}

.form-page {
    display: block;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
}

.form-page::before {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #146c43;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #146c43;
}


#page1 {
    padding-bottom: 35px;
}

#page2 {
    padding-top: 35px;
    padding-bottom: 35px;
}

#page3 {
    padding-top: 35px;
}


/* Group headings */
#page1::before,
#page2::before,
#page3::before {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #146c43;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #146c43;
}

#page1::before {
    content: "Personal Information";
}

#page2::before {
    content: "Address Information";
}

#page3::before {
    content: "Account Information";
}


/* Divider between groups */
#page2,
#page3 {
    border-top: 1px solid #dee2e6;
}


.form-label {
    font-family: 'myfontbold', sans-serif;
    color: #000;
    margin-bottom: 6px;
    font-size: 15px;
}

.text-danger {
    color: #dc3545;
    font-size: 15px;
}

.form-control,
.form-select {
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: white;
    height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
    outline: none;
}


.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary-custom {
    background: #198754;
    border: none;
    color: white;
    padding: 9px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary-custom:hover {
    background: #146c43;
    transform: translateY(-1px);
}

.btn-primary-custom:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-secondary-custom {
    background: #6c757d;
    border: none;
    color: white;
    padding: 9px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.btn-secondary-custom:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: #198754;
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}


.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.modal-title {
    font-size: 30px;
    font-family: 'myfontbold', sans-serif;
}

.form-check-label{
    color: #000;
}

.form-check-input {
    border: 2px solid #146c43 !important; 
}

.form-check-input:checked {
    background-color: #146c43;
    border-color: #146c43;
}

@media (max-width: 1400px) {
    .registration-container {
        padding: 0 100px;
    }
  
}

@media (max-width: 768px) {
    
    .registration-container {
        padding: 10px;
        margin: 20px auto;
    }

    .registration-form-container {
        padding: 20px 15px;
    }

    .registration-card {
        padding: 10px;
    }

    .registration-header {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .registration-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .form-page {
        padding: 20px;
    }

    .registration-title {
        font-size: 14px;
        line-height: 1.5;
    }


    .tab-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .tab-item {
        padding: 12px 15px;
    }

    .tab-label {
        font-size: 14px;
    }

    .tab-number {
        font-size: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
    }
}

.progress {
    background-color: #e9ecef;
}

.password-rules {
    font-size: 14px;
    color: red;
}