/* Overlay */
#contact-form {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(0, 168, 204, 0.1)
  );
  backdrop-filter: blur(10px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact-form.show {
  opacity: 1;
  visibility: visible;
}

/* Container */
.contact-form-display {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.contact-form-container {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: scale(0.8) translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: scroll;
  max-height: 90vh;
}

#contact-form.show .contact-form-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Scroll inside */
.contact-form-content {
  height: 100%;
  overflow-y: auto;
  padding: 40px 30px;
}

/* Title */
.contact-form-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #2c3e50;
  text-align: center;
  position: relative;
}

.contact-form-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(45deg, #00a8cc, #0056b3);
  border-radius: 2px;
}

/* Form Group */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

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

/* Input / Textarea */
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: #00a8cc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.15);
  outline: none;
}

/* Textarea riêng */
.textarea-control {
  min-height: 120px;
  resize: vertical;
}

/* Error message */
.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 6px;
  display: block;
  opacity: 0;
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

/* Submit Button */
.btn-submit {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.25);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading inside button */
.btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit.loading .btn-text {
  display: none;
}
.btn-submit.loading .btn-loading {
  display: flex;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Feedback Messages */
.message-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 10;
}

.message-box.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.success-message {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
}

.error-box {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.message-icon {
  font-size: 40px;
  margin-bottom: 15px;
}
