/* Added by Leonardo */

/* remove extra space to the right of the page */
html, body {

    width: 100%;
    overflow-x: hidden;
}

body {

    
    background-color: #fefaf9;

}


/* animation for angular */
.fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.fade.show {
    opacity: 1;
}


.main-form-container {
  max-height: 80vh; /* or height: 80vh */
  overflow-y: auto;
}




.background-circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 45vw; 
    height: 45vw; 
    background-color: #6db5ff; 
    border-radius: 50%;
    transform: translate(25%, -20%); 
    z-index: -1; 
    
}


.blue-circle-lower-right {
    position: absolute;
    top: 65%;
    left: 10%;
    width: 50vw; 
    height: 50vw; 
    background-color: #6eb7ff; 
    border-radius: 50%;
    transform: translate(-50%, -50%); 
    z-index: -1; 
}


.background-circle-leftcorner {
    
    position: absolute;
    top: 15%;
    left: 3%;
    width: 15vw; 
    height: 15vw; 
    background-color: #6eb7ff; 
    border-radius: 50%;
    transform: translate(-50%, -50%); 
    z-index: -1; 
}

.background-circle-leftcorner-2 {
    
    position: absolute;
    top: 23%;
    left: 17%;
    width: 30vw; 
    height: 30vw; 
    background-color: #6eb7ff; 
    border-radius: 50%;
    transform: translate(-50%, -50%); 
    z-index: -1; 
}


.gradient-div {
    background: linear-gradient(90deg, #6db5ff, #e3e3e4);
}

/* Added by: John Carlo Tulin @ 07/03/25 */

/* ✅ Style for both checkboxes */
#available_checkbox,
#allowance-checkbox,
#willing-to-negotiate{
  accent-color: #0F7414; /* Sets border and checkmark color */
}

/* ✅ Optional: add extra background/border for checked state if needed */
#available_checkbox:checked,
#allowance-checkbox:checked,
#willing-to-negotiate:checked {
  background-color: #0F7414;
  border-color: #0F7414;
}


.form-check-input {
    all: unset;
}

.form-check-input {
    appearance: auto;
}

/* Style all radio buttons by matching the ID pattern */
input[type="radio"].form-check-input {
  accent-color: #0F7414; /* modern, sets border and dot color */
}

/* Optional: make it stronger for checked state */
input[type="radio"].form-check-input:checked {
  background-color: #0F7414;
  border-color: #0F7414;
}



input[type="date"] {
    all: unset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    cursor: pointer;
}


/* Added code  */
/* For progress indicator */

.main-form-container {

    /* max-width: 900px; */
    width: 700px;
    height: 1040px;

}

/* Smoothly animate container width/height when Angular updates inline styles */
.main-form-container {
    transition: width 360ms ease, height 420ms ease;
    will-change: width, height;
}

/* Panels (steps) animation: fade + slight vertical shift */
.panel {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 320ms ease, transform 320ms ease;
    will-change: opacity, transform;
}
.panel.d-flex {
    opacity: 1;
    transform: translateY(0);
}

/* Slightly faster transition for quick fades on small screens */
@media (max-width: 480px) {
    .main-form-container { transition-duration: 280ms; }
    .panel { transition-duration: 260ms; }
}

/* Accessibility: when panels are hidden we ensure they don't occupy visual space */
.panel.d-none { display: none !important; }


.registration-progress {
    display: flex;
    align-items: center;
    width: 40%;
    min-width: 350px;
    max-width: 500px;
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #d3d3d3; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: background-color 0.4s ease-in-out;
}

.line {
    flex: 1;
    height: 4px;
    background-color: #d3d3d3;
    transition: background-color 0.4s ease-in-out;
}

/* Active State */
.circle.active,
.line.active {
    background: var(--gridientt_4, linear-gradient(180deg, #1CB423 0%, #0F7414 100%)) !important;
}

/* 

    When a line became active
    Affect the circle to the right

*/
.line.active + .circle {
    background: var(--gridientt_4, linear-gradient(180deg, #1CB423 0%, #0F7414 100%)) !important;
}


.jumbotron span {

    width: 60%;

}

.jumbotron p {

    width: 40%;

}


.no-image{

    height: 100px;
    width: 100px;
    background-color: rgb(172, 172, 172);
    border-radius: 50%;
    
}


.upload-button a {

    position: relative

}

.upload-button a input {

    position: absolute;
    width: 155px;
    cursor: pointer;
    right: 0;
    top: -6px;
    opacity: 0;

}



.option-placeholder {

    background-color: grey;
    border-radius: 30px;
    height: 200px;
    width: 200px;

}


/* Forms button */
.forms-btn {

    /* default to inline positioning inside the button row; older code used absolute which
       could push buttons off-screen depending on container layout — use relative here
       and keep a max-width so transitions still work. */
    position: relative;
    display: inline-block;
    max-width: 150px;
    vertical-align: middle;


/* If any legacy absolute positioning remains elsewhere, ensure the row keeps room and
   buttons are visible. This targets the specific button row used in the template. */
#form-btn-container {
    position: relative; /* should already be set inline; reinforce it */
    min-height: 56px;   /* give some vertical space for buttons */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap; /* allow buttons to wrap instead of overflowing */
}

/* Ensure Next is visible by default; controller controls show/hide via ng-show. */
#next-btn {
    opacity: 1 !important;
    display: inline-block !important;
    pointer-events: auto !important;
    z-index: 5 !important;
}
}


/* Content display */
/* 

    Comment: 
    Display property is set using bootstrap class 
    
*/
/* .additional-info-1,
.additional-info-2 {



} */



/* Overide Form (input) styles */

/* remove animation of is-invalid */
.is-invalid {

    transition: none !important;
}

.required-fields.highlight,
.minor-fields.highlight {

    border-color: #ED2939 !important;

}


.input-styles {

    border-radius: 20px !important;
    font-size: 1rem !important;

}

.input-date {

    width: calc(100% - 20px) !important;

}

.checkbox-container {

    padding-left: 3rem !important;

}

.custom-slider {

    margin-bottom: 0;

}



/* Button states */

.button-container {

    width: 100%;
    position: absolute;
    bottom: 0;

}

/* if user moves to form_2 */

#previous-btn,
#next-btn,
#skip-btn {

    user-select: none;
    width: 150px;
    transform: translateX(0%);
    transition: all 0.4s ease-in-out;

}

#previous-btn.move-active {

    /* movement removed — keep previous button statically positioned to avoid overflow */
    transform: none !important;

}

#next-btn.move-active {
    /* movement removed — keep next button statically positioned to avoid overflow */
    transform: none !important;
}


/* Visually emphasise disabled state for form buttons */
.forms-btn:disabled,
.forms-btn.invalid {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(30%);
    box-shadow: none !important;
    transform: none !important;
    transition: opacity 120ms linear;
}

/* Focus ring when enabled for keyboard users */
.forms-btn:not(:disabled):focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15,116,20,0.12);
}

.save-hint {
    font-size: .875rem;
    color: #6c757d;
    margin-top: .5rem;
}

/* if user moves to form_3 */

#save-btn {
    user-select: none;
    transform: none; /* keep inline positioning */
    opacity: 1; /* visible by default; disabled visuals handled by .invalid and :disabled */
    z-index: 0;
    max-width: 190px;
    transition: opacity 0.24s ease-in-out, transform 200ms ease;
    pointer-events: all; /* interactive by default; JS still controls ng-disabled */
}

/* Disabled or invalid states should block interaction */
#save-btn.invalid,
#save-btn:disabled {
    filter: saturate(0.3);
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    user-select: none;
}

/* Make button sizes consistent so Previous/Save line up */
.forms-btn {
    min-width: 140px;
    padding-left: 12px;
    padding-right: 12px;
}


#skip-btn.move-out {

    opacity: 0;
    transform: translateX(120%);
    pointer-events: none;
    cursor: default;            
    user-select: none; 

}

.notice-box {
    background-color: #f9f9f9;
    border-left: 4px solid #0F7414;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    max-width: 500px;
    margin: 0 auto;
}

.notice-text {
    font-weight: 500;
    color: #0F7414;
}


.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Round the Selectize input */
.selectize-control.multi .selectize-input {
    border-radius: 0.5rem !important; /* Bootstrap 5-like rounded corners */
    border: 1px solid #6db5ff;       /* Optional: border color */
    background-color: #fff;
    padding: 6px 12px;
    min-height: 45px;
    font-size: 14px;
    box-shadow: none;
}

.applicant-skills-dropdown .applicant-skills-menu.show {
    position: static !important;
    transform: none !important;
    margin-top: 8px !important;
}

.applicant-skills-dropdown .applicant-skills-menu {
    max-height: 280px;
    overflow-y: auto;
}


/* Added by lorenzo @ 05/05/2025 */
/* Responsive - mobile */

/* Tablet size */
@media (max-width: 767px) {

    .main-form-container {

        /* max-width: 450px; */
        width: 450px;       /* Prevents container-fluid behavior */
        height: 1400px;

    }


    /* For smaller screen - only on first page */
    #next-btn.custom {
        
        width: 150px;
    }


    #previous-btn,
    #next-btn {

        width: 50px;

    }

    #previous-btn.move-active {

        /* movement removed for mobile — keep previous static */
        transform: none !important;
    
    }
    
    #next-btn.move-active {
        /* movement removed for mobile — keep next static */
        transform: none !important;
    }

    #save-btn {
        transform: translateX(20%);
    }

    .btn-text {

        display: none;
    }

}


/* Phone size */
@media (max-width: 480px) {


    .main-form-container {

        max-width: 100%;
    }


    .registration-progress {

        min-width: 250px;

    }

    /* Change size on mobile screens */
    .circle {
        width: 60px;
        height: 60px;
    }


    .jumbotron span {

        width: 100% !important;
    
    }

    .jumbotron p {
        width: 70% !important;
    }

}


/* Added by: Timothy @ 08/28/2025 */
