/* Form Message Styles */
.form-message {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
  margin-top: 30px;
  border-radius: 15px;
  text-align: center;
  animation: slideIn 0.5s ease-out, fadeIn 0.5s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22C55E;
}

.success-message .message-icon svg {
  animation: checkmark 0.6s ease-out;
}

.success-message h3 {
  color: #16A34A;
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0 10px 0;
  line-height: 1.3;
}

.success-message p {
  color: #15803D;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

/* Error Message */
.error-message {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #EF4444;
}

.error-message .message-icon svg {
  animation: shake 0.6s ease-out;
}

.error-message h3 {
  color: #DC2626;
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0 10px 0;
  line-height: 1.3;
}

.error-message p {
  color: #B91C1C;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

/* Icon Container */
.message-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0.8) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-message {
    padding: 40px 30px;
    margin-top: 20px;
  }

  .success-message h3,
  .error-message h3 {
    font-size: 24px;
  }

  .success-message p,
  .error-message p {
    font-size: 16px;
  }

  .message-icon {
    width: 70px;
    height: 70px;
  }

  .message-icon svg {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .form-message {
    padding: 30px 20px;
  }

  .success-message h3,
  .error-message h3 {
    font-size: 20px;
    margin: 15px 0 8px 0;
  }

  .success-message p,
  .error-message p {
    font-size: 14px;
  }

  .message-icon {
    width: 60px;
    height: 60px;
  }

  .message-icon svg {
    width: 40px;
    height: 40px;
  }
}

/* State Dropdown Arrow Styling - Fix for Nice-Select Plugin */
.contact-page__input-box .nice-select:after {
  border-bottom: 2px solid #666666 !important;
  border-right: 2px solid #666666 !important;
  width: 10px !important;
  height: 10px !important;
  margin-top: -5px !important;
  right: 25px !important;
}

.contact-page__input-box .nice-select:hover:after {
  border-bottom: 2px solid #333333 !important;
  border-right: 2px solid #333333 !important;
}

.contact-page__input-box .nice-select.open:after {
  border-bottom: 2px solid #333333 !important;
  border-right: 2px solid #333333 !important;
}
