@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark-bg: #0F0F0F;
  --card-bg: #161616;
  --card-support: #212129;
  --primary-purple: #8a55ff;
  --primary-purple-light: rgba(138, 85, 255, 0.15);
  --yellow: #ffcd00;
  --text-white: #ffffff;
  --text-gray: #b5b5c3;
  
  --support-color: #ffcd00;
  --moderator-color: #2ecc71;
  --admin-color: #ff4d4d;
  --gerente-color: #e74c3c; 
  --diretor-color: #cc2ecc; 
  
  --border-radius: 12px;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(22, 22, 22, 0.8);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8a55ff, #6f46db);
  border-radius: 10px;
  border: 2px solid var(--card-bg);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #9a65ff, #8056eb);
  box-shadow: 0 0 8px rgba(138, 85, 255, 0.4);
}

::-webkit-scrollbar-corner {
  background: var(--card-bg);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-purple) var(--card-bg);
}

body {
  background-color: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  border-radius: 50%;
  position: absolute;
}

.particle:nth-child(even) {
  animation-direction: reverse !important;
}

.top-particle:nth-child(even) {
  animation-direction: reverse !important;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-100vh) rotate(360deg); }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
}

.purple-accent {
  position: fixed; 
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(138, 85, 255, 0.2) 0%, rgba(138, 85, 255, 0) 70%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none; 
}


.purple-accent.bottom-left {
  top: auto;
  right: auto;
  bottom: -150px;
  left: -150px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: block;
  opacity: 1;
}

.role-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 600px;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.role-modal.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-content {
  max-height: 85vh;
  overflow-y: auto;
}

#modal-support .modal-content {
  max-height: none;
  overflow-y: visible;
}

#modal-support {
  height: auto;
}

.modal-header {
  padding: 25px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 20px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.modal-icon svg {
  width: 50px;
  height: 50px;
  position: relative;
  max-width: none;
  max-height: none;
  left: auto;
  top: auto;
  transform: none;
}

.modal-icon svg path {
  transform-origin: center;
  transform: scale(0.8);
}

.modal-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.modal-title {
  flex: 1;
}

.modal-title h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.modal-subtitle {
  font-size: 14px;
  opacity: 0.7;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-gray);
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 25px;
}

.modal-description {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 25px 0 15px;
  color: var(--text-white);
}

.toast-container {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999;
}

.toast-notification {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  color: var(--text-white);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  border-left: 3px solid var(--primary-purple);
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 300px;
  font-size: 13px;
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-icon {
  background-color: var(--primary-purple);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 16px;
  height: 16px;
  color: var(--text-white);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 13px;
}

.toast-message {
  color: var(--text-gray);
  font-size: 12px;
}


.modal-note {
  margin-top: 25px;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-gray);
  border-left: 3px solid var(--primary-purple);
}

.modal-note i {
  color: var(--primary-purple);
  margin-right: 8px;
}

.modal-icon.support {
  background: var(--support-color);
  color: var(--dark-bg);
  box-shadow: 0 5px 15px rgba(255, 205, 0, 0.2);
}

.modal-icon.moderator {
  background: var(--moderator-color);
  color: var(--dark-bg);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

.modal-icon.admin {
  background: var(--admin-color);
  color: var(--dark-bg);
  box-shadow: 0 5px 15px rgba(204, 46, 204, 0.2);
}

.modal-icon.gerente {
  background: var(--gerente-color);
  color: var(--dark-bg);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
}

.modal-icon.diretor {
  background: var(--diretor-color);
  color: var(--dark-bg);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.role-icon {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-icon:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.role-icon::after {
  content: 'Ver detalhes';
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-support);
  color: var(--text-white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.role-icon:hover::after {
  opacity: 1;
}

.top-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  overflow: hidden;
  z-index: 0;
}

.top-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-purple);
  opacity: 0.2;
  animation: topFloat 20s infinite linear;
}

@keyframes topFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, 25px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.main-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin: 20px auto 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  width: 100%;
  max-width: 1000px;
}

.card-header {
  padding: 30px 40px 0 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.header-content {
  flex: 1;
}

.card-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-white);
}

.card-subtitle {
  font-size: 16px;
  color: var(--text-gray);
}

.mascot-container {
  max-width: 250px;
  margin-left: 20px;
}

.mascot {
  max-width: 100%;
  height: auto;
}

.card-body {
  padding: 40px;
  position: relative;
}

.hierarchy {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 50px;
  position: relative;
  padding: 0 20px;
}

.hierarchy::after {
  content: '';
  position: absolute;
  left: 75px;
  right: 75px;
  top: 35px;
  height: 2px;
  background: linear-gradient(90deg, var(--support-color), var(--diretor-color));
  z-index: 0;
}

.role-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  margin-right: 0;
}

.role-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--role-color, var(--primary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--dark-bg);
  margin-bottom: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  border: 4px solid var(--card-bg);
}

.role-icon svg {
  width: 32px;
  height: 32px;
}

.role-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.role-item:hover .role-icon {
  transform: translateY(-5px);
}

.role-name {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-level {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 5px;
}

.support {
  --role-color: var(--support-color);
}

.moderator {
  --role-color: var(--moderator-color);
}

.admin {
  --role-color: var(--admin-color);
}

.gerente {
  --role-color: var(--gerente-color);
}

.diretor {
  --role-color: var(--diretor-color);
}

.form-container {
  background: var(--card-support);
  border-radius: var(--border-radius);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--support-color);
}

.form-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.form-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--support-color);
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 20px;
  box-shadow: 0 5px 15px rgba(255, 205, 0, 0.2);
}

.form-icon svg {
  width: 30px;
  height: 30px;
}

.form-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.form-title {
  flex: 1;
}

.form-title h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--support-color);
}

.vacancy-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background: linear-gradient(90deg, rgba(255, 205, 0, 0.2), rgba(255, 205, 0, 0.1));
  color: var(--support-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 205, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.vacancy-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent
  );
  transform: translateX(-100%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  20% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.vacancy-badge i {
  color: var(--support-color);
  margin-right: 8px;
  animation: blink 2s infinite;
}

.vacancy-badge svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  animation: blink 2s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.form-description {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.responsibilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  margin-bottom: 30px;
}

.responsibility-item {
  display: flex;
  align-items: center;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 205, 0, 0.1);
  color: var(--support-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-right: 12px;
  flex-shrink: 0;
}

.check-icon svg {
  width: 10px;
  height: 10px;
}

.responsibility-text {
  font-size: 14px;
  color: var(--text-gray);
}

.submit-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--support-color);
  color: var(--dark-bg);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 205, 0, 0.2);
}

.submit-button i {
  margin-right: 8px;
}

.submit-button svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.03);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-purple-light), rgba(138, 85, 255, 0.05));
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 20px;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.benefit-description {
  font-size: 13px;
  color: var(--text-gray);
}

footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 30px;
}

.footer-text {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-gray);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: var(--transition);
  font-size: 18px;
}

.social-link:hover {
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.copyright {
  font-size: 12px;
  color: var(--text-gray);
}

.heart {
  color: var(--diretor-color);
  display: inline-block;
}

@media (max-width: 768px) {

  .vacancy-badge {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  a.submit-button {
    margin-top: 25px;
  }

  .hierarchy {
    flex-direction: row;
    gap: 10px;
    padding-top: 5px;
    justify-content: space-evenly;
  }
  
  .hierarchy::after {
    height: 2px;
    top: 25px;
    left: 45px;
    width: calc(100% - 90px);
    right: auto;
  }
  
  .role-item {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .role-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .role-icon svg {
    width: 28px;
    height: 28px;
  }

  .role-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
  
  .role-name {
    font-size: 12px;
  }
  
  .role-level {
    font-size: 10px;
  }

  .responsibilities {
    grid-template-columns: 1fr;
  }
  
  .benefits {
    grid-template-columns: 1fr;
  }
  
  .card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .header-content {
    margin-bottom: 20px;
  }
  
  .mascot-container {
    margin-left: 0;
    order: -1;
    margin-bottom: 20px;
  }
  
  .role-modal {
    width: 90%;
    max-width: 90%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    overflow: hidden;
    box-sizing: border-box;
    max-height: 90vh;
    position: fixed;
    height: auto;
  }
  
  .role-modal.active {
    transform: translate(-50%, -50%) scale(1);
  }
  
  #modal-support, #modal-support .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-content {
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-top: 40px;
  }
  
  .modal-header {
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .modal-body {
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .modal-title {
    width: 100%;
    box-sizing: border-box;
  }
  
  .responsibility-item {
    width: 100%;
    box-sizing: border-box;
  }
  
  .modal-close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 600px) {

  a.submit-button {
    margin-top: 25px;
  }
  
  .role-modal {
    width: 95%;
    max-width: 95%;
    height: auto;
    margin: 0;
    padding: 0;
    left: 50%;
    overflow: hidden;
    box-sizing: border-box;
    max-height: 85vh;
  }
  
  #modal-support {
    max-height: 85vh;
    height: auto;
  }
  
  #modal-support .modal-content {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .modal-content {
    max-height: 80vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .modal-header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .modal-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
  }
  
  .modal-body {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .responsibilities {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 480px) {

  .toast-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .toast-notification {
    width: calc(100% - 20px);
    max-width: none;
  }

  .role-item.moderator .role-name {
    font-size: 0;
  }
  
  .role-item.moderator .role-name::after {
    content: 'Mod';
    font-size: 10px;
  }

  a.submit-button {
    margin-top: 25px;
  }

  .card-body {
    padding: 30px 20px;
  }
  
  .form-container {
    padding: 30px 20px;
  }
  
  .form-header {
    flex-direction: column;
    text-align: center;
  }
  
  .form-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .mascot-container {
    max-width: 150px;
  }
  
  .hierarchy {
    padding: 0 5px;
    justify-content: space-evenly;
  }
  
  .hierarchy::after {
    top: 20px;
    left: 35px;
    width: calc(100% - 70px);
    right: auto;
  }

  .role-icon {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .role-icon svg {
    width: 25px;
    height: 25px;
  }

  .role-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
  }
  
  .role-name {
    font-size: 10px;
  }
  
  .role-level {
    font-size: 8px;
  }
  
  .role-modal {
    width: 92%;
    max-width: 92%;
    border-radius: var(--border-radius);
    margin: 0;
    left: 50%;
    box-sizing: border-box;
  }
  
  #modal-support {
    max-height: 85vh;
    height: auto;
  }
  
  .modal-content {
    border-radius: var(--border-radius);
    max-height: 85vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-top: 35px; 
  }
  
  #modal-support .modal-content {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .modal-title h3 {
    font-size: 18px;
  }
  
  .modal-subtitle {
    font-size: 12px;
  }
  
  .modal-description {
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .modal-section-title {
    font-size: 15px;
    margin: 20px 0 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .responsibility-text {
    font-size: 13px;
  }
  
  .modal-note {
    font-size: 12px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .responsibilities {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  .responsibility-item {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
  }
  
  .check-icon {
    flex-shrink: 0;
  }
  
  .modal-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {

  a.submit-button {
    margin-top: 25px;
  }

  .card-body {
    padding: 20px 15px;
  }
  
  .form-container {
    padding: 20px 15px;
  }
  
  .mascot-container {
    max-width: 120px;
  }
  
  .hierarchy {
    padding: 0 3px;
    gap: 6px;
    justify-content: space-evenly;
  }
  
  .hierarchy::after {
    top: 18px;
    left: 30px;
    width: calc(100% - 60px);
    right: auto;
  }

  .role-icon {
    width: 36px;
    height: 36px;
    border-width: 2px;
    font-size: 16px;
  }
  
  .role-icon svg {
    width: 20px;
    height: 20px;
  }

  .role-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
  
  .role-name {
    font-size: 9px;
  }
  
  .role-level {
    font-size: 7px;
  }
  
  .role-modal {
    width: 95%;
    max-width: 95%;
    max-height: 90vh;
  }
  
  #modal-support {
    max-height: 90vh;
    height: auto;
  }
  
  .modal-content {
    max-height: 85vh;
    padding-top: 35px; 
  }
  
  #modal-support .modal-content {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .modal-title h3 {
    font-size: 16px;
  }
  
  .modal-subtitle {
    font-size: 11px;
  }
  
  .modal-description {
    font-size: 13px;
  }
  
  .modal-section-title {
    font-size: 14px;
    margin: 15px 0 8px;
  }
  
  .responsibility-text {
    font-size: 12px;
  }
  
  .modal-note {
    font-size: 11px;
    padding: 8px;
  }
  
  .modal-header {
    padding: 12px;
  }
  
  .modal-body {
    padding: 12px;
  }
  
  .modal-close {
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  
  .modal-icon {
    width: 40px;
    height: 40px;
  }
  
  .benefits {
    gap: 10px;
  }
  
  .responsibility-item {
    margin-bottom: 8px;
  }
  
  .check-icon {
    margin-right: 8px;
    width: 16px;
    height: 16px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .role-modal {
    max-height: 90vh;
    top: 50%;
    width: 90%;
    max-width: 90%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    box-sizing: border-box;
    overflow: hidden;
  }
  
  #modal-support {
    max-height: 90vh;
    height: auto;
  }
  
  .role-modal.active {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .modal-content {
    max-height: 75vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-top: 40px; 
  }
  
  #modal-support .modal-content {
    max-height: 75vh;
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    flex-direction: row;
  }
  
  .modal-body {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .modal-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }
  
  .responsibilities {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    box-sizing: border-box;
  }
  
  .modal-close {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1100;
  }
}