/* Style for the NEAR application website */

body {
  /* background-image: url("https://www.snac-k.se/wp-content/themes/snack/img/bg.png"); */
  font-family: "Open Sans";
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  color: #4c4c4c;

  counter-reset: h3-counter; /* Initialize the counter */

  /* Add these lines for sticky footer */
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

/* style for headers, make them similar to NEAR website */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

/* auto count for h3 */
h3 {
  counter-increment: h3-counter; /* Increment the counter for each h3 */
}

h3::before {
  content: counter(h3-counter) ". "; /* Display the counter before the h3 text */
}

/* Remove h3 counter for headings with .no-counter */
h3.no-counter::before {
  content: none !important;
}

/* style for the h2 header, make them similar to NEAR website */
.header h2 {
  /*margin-top: 3%;*/
  display: inline-block;
  border-bottom: 4px solid #7ba74f;
  padding-bottom: 10px;
  font-size: 30px;
}

a:hover {
  cursor: pointer;
}

#g-recaptcha-response {
  display: block !important;
  position: absolute;
  margin: -78px 0 0 0 !important;
  width: 302px !important;
  height: 76px !important;
  z-index: -999999;
  opacity: 0;
}

/* Logo styling */
#logo {
  width: 15%;
  margin-top: 30px;
}

/* style for the form inputs control */
.form-control-thin {
  display: inline-block; /* Changed from block to inline-block */
  width: auto; /* Changed from 100% to auto */
  padding: 0.375rem 0.75rem;
  font-size: 1.5rem; /* Match body font-size */
  line-height: 1.6; /* Match body line-height */
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin-bottom: 0; /* Remove extra bottom spacing */
}

.form-control-thin:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25); /* Smaller shadow than form-control */
}

.form-control-thin:disabled {
  background-color: #f5f5f5;
  opacity: 0.6;
  cursor: not-allowed;
}

/* style for the textarea */
.char-counter {
  text-align: right;
  margin-top: 5px;
}

.char-counter small {
  font-size: 12px;
}

.collaborator-section {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.collaborator-section input[type="text"],
.collaborator-section input[type="email"] {
  margin: 0.5rem 0;
  width: 100%;
  max-width: 300px;
  padding: 0.5rem;
}

.collaborator-section select,
.main-applicant-gender select {
  padding: 0.5rem;
  max-width: 200px;
  margin: 0.5rem 0;
  border-radius: 0.25rem;
}

.collaborator-section select:focus,
.main-applicant-gender select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.25);
}

/* style for the collaborator section  */
#collaborators_section {
  display: flex;
  flex-direction: column;
}

/* style for the collaborator container */
#collaborators-container {
  margin-bottom: 1rem;
}

/* style for the collaborator controls */
.collaborator-controls {
  margin-top: auto;
  padding: 1rem 0;
  /* border-top: 1px solid #ddd; */
}

.collaborator-controls .btn {
  transition: all 0.2s ease;
  position: relative;
}

.collaborator-controls .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.collaborator-controls .btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* style for preliminary time line */
.date-container {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.date-group {
  flex: 1;
}

.date-inputs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Add these new animation styles for dropdowns */
.date-inputs select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-inputs select:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  border-color: #80bdff;
  outline: none;
}

/* style for checkboxes */
.checkbox-item {
  margin-bottom: 15px;
  line-height: 1.5;
}
/* File info styling */
.file-info {
  font-size: 12px;
  margin-top: 5px;
  padding: 4px 8px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 3px;
  color: #155724;
}

.file-error {
  font-size: 12px;
  margin-top: 5px;
  color: #dc3545;
  display: none;
}

/* Make file inputs more visually distinct */
.form-control-file {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 2px dashed #ccc;
  border-radius: 4px;
  margin-top: 5px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

/* style for the footer */
.footer {
  background-color: #2a2a2a;
  color: #777;
}

.footer img {
  max-width: 100%;
  margin-bottom: 30px;
}

.footer img:last-child {
  margin-bottom: 0;
}

.footer .footer-logos img {
  display: inline-block;
  margin-bottom: 30px;
  margin-right: 30px;
}

.footer p {
  color: #aeaeae;
}

.footer h3 {
  text-transform: uppercase;
  color: #c8c8c8;
  font-size: 18px;
  margin-bottom: 24px;
}

/* remove the counter from the footer h3 */
footer h3::before {
  content: none;
}

.footer h3 span {
  display: inline-block;
  border-bottom: 1px solid #444;
  padding-bottom: 6px;
}

.footer a {
  color: #aeaeae;
}

.footer-contact {
  margin-bottom: 26px;
  color: #aeaeae;
}

.footer-contact strong {
  color: #60b01b;
}

.footer-contact:last-child {
  margin-bottom: 0;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li a {
  color: #777;
}

.container-footer {
  width: 100%;
  padding-right: 25px;
  padding-left: 25px;
  padding-top: 40px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -25px;
  margin-left: -25px;
}

.col-md-3,
.col-md-4,
.col-md-5 {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 25px;
  padding-left: 25px;
}

/* .cut :first-child {
    margin-top: 100px
} */

.cut :last-child {
  margin-bottom: 0px;
}

@media (min-width: 576px) {
  .footer .container-footer {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .footer .container-footer {
    max-width: 720px;
  }

  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-md-4 {
    flex: 0 0 33.3333333333%;
    max-width: 33.3333333333%;
  }

  .col-md-5 {
    flex: 0 0 41.6666666667%;
    max-width: 41.6666666667%;
  }
}

@media (max-width: 767.98px) {
  #logo {
    width: 25%;
    margin-top: 20px;
  }
  .footer h3 {
    margin-bottom: 10px;
    margin-top: 30px !important;
  }

  .footer .footer-logos img {
    max-height: 60px;
  }

  .footer .footer-logo {
    margin-bottom: 0;
    width: 150px;
  }
}

@media (min-width: 992px) {
  .footer .container-footer {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .footer .container-footer {
    max-width: 1140px;
  }
}

.footer-text-column img {
  width: 80%;
}
/* these styling is added to make sure footer stays at the bottom of the success page */
.container {
  grid-row: 1;
}

footer {
  grid-row: 2;
}
