/*---------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------ FORMS -----------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------*/
.form .g-box-shadow__dark-lightest-v3{
    max-width: 65%; 
    border-radius: 1rem;
    padding-bottom: 2rem;
}

.form.g-fullheight--xs {
	height: 100vh;
}

.form .g-padding-y-50--xs {
    padding-bottom: 1.125rem;
}

.form p{
	font-weight: bold;
	padding: .3rem .1rem;
}

.form .g-font-size-60--md{
    font-size: 3rem !important;
    padding-top: 3.2rem;
}
.form .g-margin-b-50--md{
    margin-bottom: 1rem;
}
.form .g-font-size-22--sm{
	font-weight: 500;
	font-size: 1.3rem !important;
}

/* LOGO */
.form .g-box-shadow__dark-lightest-v3 .g-width-100--xs{
    padding-bottom: 2rem;
}
/* INPUT FIELD */
.form .s-form-v4__input{
    border: solid #8C8C8C .1rem;
    border-radius: .2rem;
    letter-spacing: normal;
    padding-left: .7rem;
    height: 2.7rem;
    text-transform: none;
}
.form .s-form-v4__input::placeholder{
    font-size: 0.8125rem;
}

.togglePassword{
    position: absolute;
    top: 50%; 
    right: 20px; 
    transform: translateY(-50%); 
    border: none; 
    background: none; 
    cursor: pointer;
}

.form a{
    color: #515151;
    font-size: .7rem;
    letter-spacing: normal;
}
.form a:hover{
    color: #9ACD32;
}


/**********************************
FLOATING LABEL SECTION
**********************************/
.floating-label-container {
    position: relative;
    margin-bottom: .5rem; /* Add space for the error message */
}

.floating-label-container label{
    font-weight: 500;
}

.floating-label-container .text-danger.field-errors {
    position: absolute;
    bottom: -1.3rem; /* Adjust to position below the input */
    left: 1rem; /* Align with the input padding */
    font-size: 0.7rem;
    color: #d9534f; /* Red color */
}

.floating-label-container input {
    width: 100%;
    padding: 0.75rem 0.5rem; /* Adjust padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    font-size: .8rem;
}

.floating-label-container label {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 1.7rem;
    transform: translateY(-50%); /* Initial center alignment */
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

.floating-label-container input:focus + label,
.floating-label-container input:not(:placeholder-shown) + label {
    top: 0; /* Moves label to the top */
    transform: translateY(0); /* Adjust to 0% */
    font-size: 0.75rem; /* Optionally reduce font size */
    color: #007bff; /* Optional color change on focus */
}

.floating-label-container input:focus + label,
.floating-label-container input:not(:placeholder-shown) + label {
    top: -0.6rem; /* Float to top */
    left: 1.7rem; /* Align with the left padding */
    font-size: 0.75rem;
    color: #555;
    background-color: #fff; /* Optional for visual clarity */
    padding: 0 0.25rem;
}








/* Spinner */
.loader {
  display: none;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #9ACD32;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success Message Modal */
#form-success-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center; justify-content: center;
  z-index: 9999;
}
.modal-content {
  background: white;
  color: #333;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  margin: auto;
}
.modal-content h3 { color: #9ACD32; }
.modal-content button {
  background: #9ACD32;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 30px;
  margin-top: 15px;
  cursor: pointer;
}
.modal-content button:hover {
  background: #89b42c;
}

/* Field Error Styling */
.is-invalid {
  border-color: #e74c3c !important;
}
.text-danger {
  color: #e74c3c;
  font-size: 0.9em;
}

/* Smooth UX feedback */
.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff6f6;
}

/* Message box styling */
#ajax-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    font-size: 15px;
    line-height: 1.4;
}
#ajax-message.success {
    background-color: #e6ffed;
    color: #155724;
    border: 1px solid #b7f5c2;
}
#ajax-message.error {
    background-color: #ffeaea;
    color: #721c24;
    border: 1px solid #f5b7b1;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success box */
.success-box {
    text-align: center;
}
.go-home-btn {
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.go-home-btn:hover {
    background-color: #0056b3;
}




/* Extra small devices (phones, less than 576px) */
@media screen and (max-width: 364.98px) {
    /* Styles for extra small devices */
    .form .g-box-shadow__dark-lightest-v3{
        max-width: 100%; 
    }
    .form .g-padding-x-40--xs{
        padding-left: .5rem;
        padding-right: .5rem;
    }
    .form .g-box-shadow__dark-lightest-v3 .g-width-100--xs {
		padding-bottom: 1.5rem;
	}
    .form .g-width-100--xs {
		width: 4.25rem;
	}
    .form .s-form-v4__input{
		padding-left: .8rem;
        height: 2.5rem;
	}
    .form .g-font-size-28--xs {
        font-size: 2.2rem !important;
    }
    .form .g-margin-b-30--xs {
        margin-bottom: 1.2rem;
    }
    .form .g-margin-b-30--xs.g-margin-b-50--md{
        margin-bottom: .8rem;
    }
    .form p{
        font-size: .8rem;
    }
}


/* Extra small devices (phones, less than 576px) */
@media screen and (min-width: 365px) and (max-width: 575.98px) {
    /* Styles for extra small devices */
    .g-padding-y-125--sm.products {
        padding-top: 2.5rem;
    }
    .form .g-box-shadow__dark-lightest-v3 .g-width-100--xs {
		padding-bottom: 2rem;
	}
    .form .g-box-shadow__dark-lightest-v3{
        max-width: 100%; 
    }
    .form .g-padding-x-40--xs{
        padding-left: .5rem;
        padding-right: .5rem;
    }
    .form .g-width-100--xs {
		width: 5.25rem;
	}
    .form .g-margin-b-50--md{
        margin-bottom: .2rem;
    }
    .products .g-font-size-14--xs {
        font-size: 0.5rem !important;
    }
    .products .g-font-size-32--xs {
        font-size: 1.1rem !important;
    }
    .products.main-categories .g-margin-b-100--xs {
        margin-bottom: 1.5rem;
    }
    .products.main-categories h3 {
        font-weight: 600;
        font-size: .8rem !important;
        padding-bottom: .5rem;
    }
    .form .g-font-size-28--xs {
        font-size: 3rem !important;
    }
	.form .s-form-v4__input{
		height: 3rem;
	}
    .form p{
        font-size: .8rem;
    }
    .products.main-categories .description {
        font-size: 0.6rem;
        line-height: 1.4;
    }
    .products.main-categories .article .s-btn--md {
        font-size: 0.7rem;
        padding: .4rem 2.5rem;
    }
    .products.main-categories .article .g-margin-b-20--xs {
        margin-top: 1rem;
        margin-bottom: .5rem;
    }
}

/* Small devices (phones, 576px and up) */
@media screen and (min-width: 576px) and (max-width: 767.98px) {
    /* Styles for small devices */
    .form .g-box-shadow__dark-lightest-v3{
        max-width: 90%; 
    }
}

/* Medium devices (tablets, 768px and up) */
@media screen and (min-width: 768px) and (max-width: 991.98px) {
    /* Styles for medium devices */
    .form .g-box-shadow__dark-lightest-v3{
        max-width: 90%; 
    }
    .form .g-font-size-50--md {
        font-size: 5rem !important;
    }
    .form .g-font-size-20--md {
        font-size: 1.7rem !important;
    }
    .form .s-form-v4__input{
        font-size: 1.2rem;
    }
    .form .s-form-v4__icon{
        font-size: 1.2rem;
    }
}

/* Media query for screens below 768px */
@media (max-width: 768px) {
    .floating-label-container {
        margin-bottom: 1rem; /* Increase bottom margin to create space for errors */
    }
    .floating-label-container .text-danger.field-errors {
        bottom: -1.2rem; /* Adjust positioning of the error message */
    }
    .sign-up .g-text-center--xs .g-margin-b-0--md {
        margin-top: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media screen and (min-width: 992px) and (max-width: 1199.98px) {
    /* Styles for large devices */
    .form .g-box-shadow__dark-lightest-v3{
        max-width: 80%; 
    }
    .form .g-font-size-50--md {
        font-size: 5rem !important;
    }
    .form .g-font-size-20--md {
        font-size: 1.7rem !important;
    }
    .form .s-form-v4__input{
        font-size: 1.2rem;
    }
    .form .s-form-v4__icon{
        font-size: 1.4rem;
    }
    
    /* BUTTON */
    
}

/* Extra large devices (large desktops, 1200px and up) */
@media screen and (min-width: 1200px) and (max-width: 1399.98px) {
    /* Styles for extra large devices */
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media screen and (min-width: 1400px) {
    /* Styles for extra extra large devices */
}
/*----------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------- END FORMS --------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------*/