/* Request Course Info Form Modal Styles */
.request-info-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in;
  padding: 20px;
  overflow-y: auto;
}

.request-info-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.request-info-modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.request-info-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #5a6278;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.request-info-close:hover {
  color: #1a2744;
}

.request-info-form h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 800;
  color: #1a2744;
  margin-bottom: 10px;
  padding-right: 30px;
  word-break: break-word;
}

.request-info-form p {
  color: #5a6278;
  margin-bottom: 25px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.4;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a2744;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  word-break: break-word;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: clamp(10px, 2vw, 12px);
  border: 1px solid #d0d5e0;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: #1a2744;
  transition: border-color 0.3s;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23365670' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 35px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group.required label::after {
  content: ' *';
  color: #e74c3c;
}

.request-submit {
  width: 100%;
  padding: clamp(12px, 2vw, 14px);
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
  margin-top: 10px;
}

.request-submit:hover {
  background: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 204, 0.3);
}

.request-submit:active {
  transform: translateY(0);
}

.request-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: none;
  animation: fadeIn 0.3s ease-in;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.form-success.show {
  display: block;
}

.form-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: none;
  animation: fadeIn 0.3s ease-in;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.form-error.show {
  display: block;
}

@media (max-width: 600px) {
  .request-info-modal {
    padding: 20px;
  }

  .request-info-modal-content {
    padding: 25px 20px;
    width: 100%;
    border-radius: 10px;
  }

  .request-info-form h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .request-info-form p {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .request-info-close {
    right: 12px;
    top: 12px;
    font-size: 24px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 8px;
    font-size: 16px;
  }

  .form-group textarea {
    min-height: 70px;
  }

  .request-submit {
    padding: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .request-info-modal-content {
    padding: 20px 15px;
  }

  .request-info-form h2 {
    font-size: 1.1rem;
    padding-right: 25px;
  }

  .request-info-form p {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 8px 6px;
    font-size: 16px;
  }

  .request-info-close {
    right: 10px;
    top: 10px;
    width: 25px;
    height: 25px;
    font-size: 20px;
  }
}

@media (max-width: 320px) {
  .request-info-modal-content {
    padding: 15px 12px;
  }

  .request-info-form h2 {
    font-size: 1rem;
  }

  .form-group {
    margin-bottom: 12px;
  }
}
