/* ---------- GENERAL & LAYOUT ---------- */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}

/* Use flex layout so the footer stays at the bottom */
body {
    display: flex;
    flex-direction: column;
    /*min-height: 75rem;*/
    padding-top: 4rem;
}

main {
    flex: 1;
}

/* ---------- HEADER ---------- */
.navbar {
    transition: all 0.3s ease;
}

.navbar.shrink {
    padding: 0;
}

a.navbar-brand {
    height: 3rem;
}

/* ---------- BUTTONS ---------- */
.btn-unicaf {
    background-color: #DB004D;
    border: 1px solid #DB004D;
    color: #fff;
}

.btn-unicaf:hover {
    background-color: #C60045;
    border-color: #C60045;
    color: #fff;
}

/* ---------- CARD & HOVER EFFECTS ---------- */
.card {
    margin-bottom: 30px;
    border: none;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
}

#applyForm .card {
    transition: none;
}

#applyForm .card:hover {
    transform: none;
}

.input-group .iti {
    display: flex;
    flex-grow: 1;
}

.input-group .iti .form-control {
    -webkit-border-top-left-radius: 3px;
    -webkit-border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    -webkit-border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    border-radius: 0.25rem;
}

.apply-for {
    color: #db004d;
    font-weight: bold;
}

/* ---------- CV/RESUME UPLOAD CARD ---------- */
.resume-card {
    border: 1px dashed #ccc;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1.5rem;
    background-color: #efefef;
}

.resume-card input[type="file"] {
    display: none;
}

.upload-label {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 5px;
    cursor: pointer;
}

.file-info {
    margin-top: 0.5rem;
    font-weight: bold;
}

.allowed-files {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ---------- intl-tel-input STYLES ---------- */
.intl-tel-input {
    width: 100% !important;
}

.intl-tel-input .iti__flag-container {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    display: flex;
    align-items: center;
}

.intl-tel-input input[type="tel"] {
    border: 1px solid #ced4da;
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    padding-left: 50px;
    height: calc(1.5em + 0.75rem + 2px);
    box-shadow: none;
}

.intl-tel-input .iti__country-list {
    z-index: 9999;
}

.iti {
    display: block;
}

/* ---------- SEARCH INPUT (Job Posting Page) ---------- */
/* (Additional styling can be added here if needed) */
#jobSearch {
    /* The input will use Bootstrap's form-control styles by default */
}

/* ---------- THANK YOU PAGE ---------- */
.thank-you-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    margin: 3rem auto;
    max-width: 800px;
}

.thank-you-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.thank-you-card h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.thank-you-card p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Back link for Thank You page */
.back-link {
    font-size: 1.1rem;
    color: #DB004D;
    text-decoration: none;
}

.back-link:hover {
    color: #C60045;
    text-decoration: underline;
}

/* ---------- FOOTER ---------- */
footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* ---------- ADDITIONAL QUESTIONS SECTION (Apply Page) ---------- */
.additional-questions {
    margin-top: 1rem;
}

/* ---------- CUSTOM GLOBAL STYLES ---------- */
/* (Add any extra global styles here as needed) */


/* Initially hide the modal */
#cookieModal {
    opacity: 0;
    visibility: hidden; /* Ensures it does not interfere with clicking */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* When the modal has the .show class, make it visible */
#cookieModal.show {
    opacity: 1;
    visibility: visible;
}

