:root{
  --bg-color-first:#f5f7fc;
  --bg-color-second:#e9edf1;
  --bg-color-third:#247bfd;

  --text-color-first:#20234b;
  --text-color-second:#3d3c3c;
  --text-color-third:#247bfd;

  --hover-text-color:#fff;
  --sidebar-background: #e1e1e1;

  --more-and-less:#555;

  --url-background: url('/static/img/image003.png');
}

body {
  font-family: sans-serif;
  margin: 0;
  display: flex;
  height: 100vh;
  background: var(--bg-color-first);
  color: var(--text-color-first);
  background-image: var(--url-background);
}

body.dark--mode{
  --bg-color-first:linear-gradient(to bottom right, #242424,#3d3d3d);
  --bg-color-second:#202020;
  

  --text-color-first:#fff;
  --text-color-second:#9b9a9a;
  

  --hover-text-color:#000;
  --sidebar-background: #1b1b1b;

  --more-and-less:#3bc59a;

  --url-background: url('/static/img/image004.jpg')
}

.sidebar {
  width: 250px;
  background: var(--sidebar-background);
  color: var(--text-color-first);
  height: 100%;
  position: fixed;
  top: 0;
  left: -250px; 
  transition: left 0.3s ease;
  z-index: 1000;
}

.sidebar.open {
  left: 0; 
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #555;
  position: relative;
}

.sidebar-header h3 {
  margin: 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu ul {
  list-style: none;
}

.menu li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--text-color-first);
  transition: background-color 0.3s ease;
}

.link-menu {
  display: block;
  padding: 15px 20px;
  transition: background-color 0.3s ease;
}

.link-menu a {
  text-decoration: none;
  color: var(--text-color-first);
}

.link-menu:hover {
  background: var(--bg-color-first);
}

.link-under-menu {
  display: block;
  padding: 15px 40px;
  transition: background-color 0.3s ease;
}

.link-under-menu a {
  text-decoration: none;
  color: var(--text-color-first);
}

.link-under-menu:hover {
  background: var(--bg-color-first);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
  margin-left: 0; 
}

.content.open {
  margin-left: 250px;
}

header {
  display: grid;
  justify-items: end;
  background: var(--bg-color-first);
  /* background: #f2e21c; */
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

header label {
  font-size: 19px;
  font-weight: bold;
}

main {
  padding: 20px;
}

section {
  display: none;
}

section.active {
  display: block;
}
.locations {
  display: grid;
}

@media (min-width: 780px){
  .locations {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.location {
  margin: 0 10px 10px 10px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: var(--text-color-first);
  background-image: var(--url-background);
}

.menu-btn {
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  left: 10px;
  top: 10px;
}

/* ROLL OUT LIST */

.faq {
  margin-top: 20px;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  color: var(--text-color-first);
  background: var(--bg-color-first);
}

.faq-question {
  background: var(--bg-color-second);
  padding: 10px;
  cursor: pointer;
  position: relative;
  color: var(--text-color-first);
}

.faq-question:after {
  content: '+';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-question.open:after {
  content: '-';
}

.faq-answer {
  padding: 10px;
  display: none;
  transition: max-height 0.5s ease-in-out;
}

.faq-answer.open {
  display: block;
}

/* ORDER ELEMENTS */

.item-link-form {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-color-second);
  padding: 10px;
  cursor: pointer;
  position: relative;
  color: var(--text-color-first);
}

/* FORM CONTAINER */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.form-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  max-height: 90%;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.form-container h3 {
  text-align: center;
  margin-bottom: 15px;
}

.form-container label {
  display: block;
  margin-bottom: 5px;
}

.form-container input[type="text"],
.form-container input[type="number"],
.form-container input[type="date"],
.form-container select,
.form-container input[type="email"],
.form-container textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-container button[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.form-container button[type="submit"]:hover {
  background-color: #3e8e41;
}

.close-form-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.close-form-btn:hover {
  color: #333;
}

/* AUTH CONTAINER */

@media (min-width: 780px){
  .auth-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 30%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
}

.auth-header {
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-container {
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.auth-header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: white;
    color: #495057;
    border-bottom: 2px solid #667eea;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.form-group-auth {
    margin-bottom: 20px;
}

.form-group-auth label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* .auth-container h3 {
  text-align: center;
  margin-bottom: 15px;
}

.auth-container label {
  display: block;
  margin-bottom: 5px;
}

.auth-container input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
} */

.btn-submit {
  display: block;
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 auto;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background-color: #3e8e41;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.line {
  position: relative;
  height: 1px;
  width: 100%;
  margin: 36px 0;
  background-color: #d4d4d4;
}

.line::before {
  content: 'Or';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFF;
  color: #8b8b8b;
  padding: 0 15px;
}

/* PRIVACY */

.privacy-link {
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
}
.privacy-link:hover {
  text-decoration: none;
}

.privacy-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: auto;
}

#privacy-policy-content:target {
  display: block;
}

.privacy-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.privacy-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #666;
  text-decoration: none;
}

.privacy-text {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px;
}

/* DIRECTION CONTAINER */

.form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    padding: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.student-form {
    display: flex;
    flex-direction: column;
}

.form-group,
.form-group-simple {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group, .form-group-simple {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-group-simple label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-group label::after {
    content: " *";
    color: #dc3545;
}

.form-control,
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.other-institute-block,
.other-specialty-block {
  display: none;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-container {
        padding: 20px;
    }
}
