/**
 * VrnTc Theme - Modal/Dialog Component
 * Styles for signup modal and dialog windows
 */

/*------------------------------------------------------------------------modal base*/

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.modal-header {
  position: relative;
  background: #fff;
  padding: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  background-color: #fff;
  box-shadow: -3px 3px 9px rgba(0, 0, 0, 0.25);
  border-radius: 0px 10px 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close i {
  font-size: 20px;
  color: #494D4E;
  line-height: 1;
}

.modal-close:hover {
  background: #F8BF0F;
  color: #000;
}

.modal-title {
  font-weight: 700;
  font-size: 30px;
  color: #000;
  margin: 0;
  padding-right: 60px;
  text-align: center;
}

.modal-subtitle {
  font-size: 18px;
  color: #686868;
  text-align: center;
  margin-top: 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-text {
  font-size: 20px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-input-group {
  margin-bottom: 1.5rem;
}

.modal-input-group label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #494D4E;
  margin-bottom: 0.5rem;
}

.modal-input {
  width: 100%;
  background-color: #fff;
  box-shadow: -3px 3px 9px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 20px;
  color: #000;
  padding: 1rem 1.25rem;
  border: none;
  transition: box-shadow 0.3s ease;
}

.modal-input:focus {
  outline: none;
  box-shadow: -3px 3px 12px rgba(248, 191, 15, 0.4);
}

.modal-input::placeholder {
  color: #808283;
}

.modal-select {
  width: 100%;
  background-color: #fff;
  box-shadow: -3px 3px 9px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 20px;
  color: #000;
  padding: 1rem 1.25rem;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23494D4E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.modal-select:focus {
  outline: none;
  box-shadow: -3px 3px 12px rgba(248, 191, 15, 0.4);
}

.modal-textarea {
  width: 100%;
  background-color: #fff;
  box-shadow: -3px 3px 9px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 20px;
  color: #000;
  padding: 1rem 1.25rem;
  border: none;
  min-height: 120px;
  resize: vertical;
  transition: box-shadow 0.3s ease;
}

.modal-textarea:focus {
  outline: none;
  box-shadow: -3px 3px 12px rgba(248, 191, 15, 0.4);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-button {
  flex: 1;
  border-radius: 6px;
  font-size: 17px;
  color: #000;
  padding: 1rem 1.5rem;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-button i {
  margin-right: 0.5rem;
}

.modal-button.call {
  background-color: #f8bf0f;
  box-shadow: none !important;
}

.modal-button.call:hover {
  background-color: #e5a800;
  color: #000;
}

.modal-button.call i {
  font-size: 20px;
}

.modal-button.cancell {
  background-color: #fff;
  box-shadow: -3px 3px 9px rgba(0, 0, 0, 0.25);
}

.modal-button.cancell:hover {
  color: #f8bf0f;
  box-shadow: -3px 3px 9px rgba(0, 0, 0, 0.25) !important;
  border: 2px solid #f8bf0f;
}

.modal-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: #F6F6F6;
  border-top: 1px solid #808283;
  text-align: center;
  font-size: 14px;
  color: #686868;
}

.modal-footer a {
  color: #F8BF0F;
  text-decoration: none;
  font-weight: 600;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/*------------------------------------------------------------------------modal form elements*/

.modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #F8BF0F;
}

.modal-checkbox label {
  font-size: 16px;
  color: #494D4E;
  cursor: pointer;
  line-height: 1.4;
}

.modal-radio-group {
  margin-bottom: 1.5rem;
}

.modal-radio-group .form-group-label {
  font-weight: 600;
  font-size: 16px;
  color: #494D4E;
  margin-bottom: 0.75rem;
}

.modal-radio {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-radio label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 16px;
  color: #494D4E;
  cursor: pointer;
}

.modal-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #F8BF0F;
}

/*------------------------------------------------------------------------modal spinner*/

.modal-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: modal-spin 0.8s linear infinite;
  margin-right: 0.75rem;
  vertical-align: middle;
}

@keyframes modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-loading .modal-button {
  padding-left: 2rem;
}

/*------------------------------------------------------------------------modal responsive*/

@media (max-width: 926px) {
  .modal {
    max-width: 100%;
    margin: 1rem;
    border-radius: 8px;
  }
  
  .modal-close {
    width: 44px;
    height: 44px;
  }
  
  .modal-close i {
    font-size: 16px;
  }
  
  .modal-title {
    font-size: 24px;
    padding-right: 50px;
  }
  
  .modal-text {
    font-size: 16px;
  }
  
  .modal-input {
    font-size: 16px;
    padding: 0.75rem 1rem;
  }
  
  .modal-button {
    font-size: 15px;
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .modal-button i {
    font-size: 20px;
    margin-right: 0;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .modal-header {
    padding: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 22px;
  }
  
  .modal-close {
    width: 38px;
    height: 38px;
    top: -5px;
    right: -5px;
  }
  
  .modal-close i {
    font-size: 14px;
  }
  
  .modal-input {
    font-size: 16px;
  }
  
  .modal-button.call i {
    font-size: 18px;
  }
}

@media (max-width: 428px) {
  .modal {
    margin: 0.5rem;
    border-radius: 6px;
  }
  
  .modal-header {
    padding: 0.75rem;
  }
  
  .modal-body {
    padding: 0.75rem;
  }
  
  .modal-title {
    font-size: 20px;
    padding-right: 45px;
  }
  
  .modal-subtitle {
    font-size: 14px;
  }
  
  .modal-text {
    font-size: 15px;
  }
  
  .modal-close {
    width: 32px;
    height: 32px;
    top: -10px;
    right: -10px;
  }
  
  .modal-close i {
    font-size: 12px;
  }
  
  .modal-input {
    font-size: 16px;
    padding: 0.6rem 0.75rem;
  }
  
  .modal-button {
    font-size: 14px;
    padding: 0.6rem 0.75rem;
  }
  
  .modal-button.call i {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .modal-title {
    font-size: 18px;
  }
  
  .modal-text {
    font-size: 14px;
  }
  
  .modal-input {
    font-size: 15px;
  }
  
  .modal-button {
    font-size: 13px;
  }
}

/*------------------------------------------------------------------------modal fade animation*/

.modal {
  animation: modal-fade-in 0.3s ease-out;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-backdrop {
  animation: backdrop-fade-in 0.2s ease-out;
}

@keyframes backdrop-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*------------------------------------------------------------------------modal alert/confirm variants*/

.modal-alert {
  max-width: 400px;
  text-align: center;
}

.modal-alert .modal-icon {
  font-size: 48px;
  color: #F8BF0F;
  margin-bottom: 1rem;
}

.modal-alert .modal-title {
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.modal-alert .modal-text {
  font-size: 16px;
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 300px;
}

.modal-confirm {
  max-width: 450px;
}

.modal-confirm .modal-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

.modal-confirm .modal-icon.warning {
  color: #F8BF0F;
}

.modal-confirm .modal-icon.danger {
  color: #dc3545;
}

.modal-confirm .modal-icon.success {
  color: #28a745;
}

/*------------------------------------------------------------------------modal step indicator*/

.modal-steps {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.modal-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.modal-step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F6F6F6;
  color: #808283;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.modal-step.active .modal-step-indicator {
  background: #F8BF0F;
  color: #000;
  box-shadow: 0 0 0 4px rgba(248, 191, 15, 0.3);
}

.modal-step.completed .modal-step-indicator {
  background: #494D4E;
  color: #fff;
}

.modal-step-label {
  font-size: 12px;
  color: #808283;
  text-transform: uppercase;
  font-weight: 600;
}

.modal-step.active .modal-step-label {
  color: #000;
}

.modal-step.completed .modal-step-label {
  color: #494D4E;
}

/*------------------------------------------------------------------------modal file upload*/

.modal-file-upload {
  border: 2px dashed #808283;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-file-upload:hover {
  border-color: #F8BF0F;
  background: rgba(248, 191, 15, 0.05);
}

.modal-file-upload input[type="file"] {
  display: none;
}

.modal-file-upload .upload-icon {
  font-size: 32px;
  color: #808283;
  margin-bottom: 0.75rem;
}

.modal-file-upload .upload-text {
  font-size: 16px;
  color: #494D4E;
}

.modal-file-upload .upload-text span {
  color: #F8BF0F;
  font-weight: 600;
}

.modal-file-upload.has-file {
  border-color: #494D4E;
  background: #F6F6F6;
}

.modal-file-upload .file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.modal-file-upload .file-info i {
  color: #494D4E;
  font-size: 20px;
}

.modal-file-upload .file-info span {
  font-size: 14px;
  color: #494D4E;
}

/*------------------------------------------------------------------------modal QR code*/

.modal-qr {
  text-align: center;
  padding: 1rem 0;
}

.modal-qr img {
  max-width: 200px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-qr .qr-text {
  font-size: 14px;
  color: #686868;
}

/*------------------------------------------------------------------------modal tutoring card*/

.modal-tutoring-card {
  background: #F6F6F6;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.modal-tutoring-card .tutor-name {
  font-weight: 700;
  font-size: 18px;
  color: #000;
  margin-bottom: 0.25rem;
}

.modal-tutoring-card .tutor-specialty {
  font-size: 14px;
  color: #686868;
  margin-bottom: 0.75rem;
}

.modal-tutoring-card .tutor-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #F8BF0F;
  font-size: 14px;
}

.modal-tutoring-card .tutor-rating span {
  color: #494D4E;
}

.modal-tutoring-card .tutor-price {
  font-size: 24px;
  font-weight: 700;
  color: #F8BF0F;
  margin-top: 0.5rem;
}

.modal-tutoring-card .tutor-price small {
  font-size: 14px;
  font-weight: 400;
  color: #686868;
}

.modal-tutoring-card .btn-select-tutor {
  width: 100%;
  margin-top: 1rem;
  background: #F8BF0F;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-tutoring-card .btn-select-tutor:hover {
  background: #e5a800;
}
