/* Contact Dialog Modal Styles */

.contact-dialog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-dialog-modal.active {
  display: flex;
  opacity: 1;
}

.contact-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.contact-dialog-content {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.contact-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  border-bottom: 1px solid #e5e5e5;
}

.contact-dialog-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.contact-dialog-header h3 span {
  color: #50266b;
}

.contact-dialog-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-dialog-close:hover {
  color: #50266b;
  transform: rotate(90deg);
}

.contact-dialog-body {
  padding: 30px;
}

.contact-dialog-body .row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-dialog-body .col-md-6 {
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 0;
}

.contact-dialog-body .col-md-12 {
  flex: 1 1 100%;
}

.contact-dialog-body .col-md-6,
.contact-dialog-body .col-md-12 {
  padding-left: 0;
  padding-right: 0;
}

.contact-dialog-body .g-3 {
  gap: 1.5rem;
}

.contact-dialog-body .g-3 > * {
  padding: 0;
}

.contact-dialog-body .rs-contact-input {
  margin-bottom: 0;
}

.contact-dialog-body .rs-contact-input input,
.contact-dialog-body .rs-contact-input textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-dialog-body .rs-contact-input input:focus,
.contact-dialog-body .rs-contact-input textarea:focus {
  outline: none;
  border-color: #50266b;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.contact-dialog-body .rs-contact-input input::placeholder,
.contact-dialog-body .rs-contact-input textarea::placeholder {
  color: #999;
}

.contact-dialog-body textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-dialog-body .rs-contact-btn {
  padding: 0;
}

.contact-dialog-body .rs-contact-btn .rs-btn {
  width: 100%;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
}

#dialog-form-messages {
  margin-top: 15px;
}

#dialog-form-messages .alert {
  padding: 15px;
  border-radius: 4px;
  margin: 0;
  font-size: 14px;
}

#dialog-form-messages .alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

#dialog-form-messages .alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-dialog-content {
    width: 95%;
    max-height: 85vh;
  }

  .contact-dialog-header {
    padding: 20px;
  }

  .contact-dialog-header h3 {
    font-size: 20px;
  }

  .contact-dialog-body {
    padding: 20px;
  }

  .contact-dialog-body .col-md-6 {
    padding-right: 0;
    padding-left: 0;
  }

  .contact-dialog-body .col-md-6:nth-child(2n) {
    padding-left: 0;
  }

  .contact-dialog-body .g-3 {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-dialog-content {
    width: 98%;
  }

  .contact-dialog-header {
    padding: 15px;
  }

  .contact-dialog-header h3 {
    font-size: 18px;
  }

  .contact-dialog-body {
    padding: 15px;
  }

  .contact-dialog-close {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}
