/* Hero section */
.hero {
  height: 400px;
  background-image: url('../assets/images/people.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  animation: heroAnimation 20s ease-in-out infinite;
  overflow: hidden;
}

@keyframes heroAnimation {
  0% {
    background-size: 100%;
    background-position: center;
  }
  50% {
    background-size: 110%;
    background-position: center 45%;
  }
  100% {
    background-size: 100%;
    background-position: center;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 20px;
}

.feedback-section {
  background-color: #ffffff;
  margin-bottom: 10px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}

.feedback-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}

.feedback-form-container {
  flex: 2;
  padding: 30px;
}

.contact-info-container {
  flex: 1;
  padding: 30px;
}

.feedback-form-container h2,
.contact-info-container h2 {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
}

.contact-info-container h2 {
  color: #0f0b0b;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Floating label fields */
.field-group { gap: 10px; display: flex; flex-direction: column; }
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  padding: 16px 14px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15); /* light gray outline style */
  border-radius: 10px; /* subtle rounded corners */
  color: #111827;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(17,24,39,0.6);
  pointer-events: none;
  transition: all .15s ease;
  background: #fff;
  padding: 0 6px;
}

/* Focus + has-value state */
.field input:focus,
.field textarea:focus {
  border-color: #7338A0;
  box-shadow: 0 0 0 3px rgba(115,56,160,0.15);
  outline: none;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%) scale(0.9);
  color: #7338A0;
}

/* Required + error styles */
.field.required input:required:invalid,
.field.required textarea:required:invalid {
  border-color: rgba(0,0,0,0.15);
}
.field.error input,
.field.error textarea { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.field .error-text { display: none; margin-top: 6px; color: #dc2626; font-size: 13px; }
.field.error .error-text { display: block; }

/* Anonymous checkbox row */
/* (removed) anonymous checkbox row */

.form-row {
  display: flex;
  gap: 20px;
}

.form-row input {
  flex: 1;
}

/* legacy inputs in layout rows */
.form-row input { padding: 16px 14px; border-radius: 10px; }

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.7);
}

/* handled in .field focus */

.send-message-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #7338A0; /* primary purple */
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.send-message-btn:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.8;
}

.send-message-btn:disabled::before {
  animation: none;
}

.send-message-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.send-message-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
.send-message-btn i { font-size: 14px; }
.send-message-btn .btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.6); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.send-message-btn.loading { 
  opacity: 0.9; 
  pointer-events: none; 
  cursor: not-allowed;
  transform: none !important;
  background-color: #7338A0 !important;
  box-shadow: none !important;
}
.send-message-btn.loading .btn-text { display: inline-block; }
.send-message-btn.loading i { display: none !important; }
.send-message-btn.loading .btn-spinner { display: inline-block !important; }
.send-message-btn:hover:not(.loading) { 
  background-color: #5f2d84; 
  transform: translateY(-1px); 
  box-shadow: 0 6px 12px rgba(115, 56, 160, 0.25); 
}
@keyframes spin { to { transform: rotate(360deg); } }

.send-message-btn:hover {
  background-color: #581845;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(115, 56, 160, 0.3);
}

.contact-details {
  margin-top: 20px;
}

.contact-details h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: rgb(0, 0, 0);
}

.contact-item {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.contact-item .icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
}

.contact-item p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero {
    height: 300px;
    animation: none !important;
    background-attachment: scroll !important;
  }

  .hero-overlay {
    padding: 15px;
    animation: none !important;
  }

  .hero-overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero-overlay p {
    font-size: 1rem;
    max-width: 90%;
    line-height: 1.5;
  }

  .feedback-container {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .feedback-form-container,
  .contact-info-container {
    padding: 20px;
  }
}

/* Add header-right container styles */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.logreg-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.message-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

.success-message {
  background-color: rgba(115, 56, 160, 0.1);
  color: #7338A0;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

/* Success Modal Styles */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-modal-container {
  position: relative;
  padding: 20px;
}

.success-modal-content {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.success-modal-overlay.active .success-modal-content {
  transform: translateY(0);
  opacity: 1;
}

.success-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.success-modal-close:hover {
  background: #f1f3f5;
  color: #0c4da2;
  transform: rotate(90deg);
}

.success-modal-icon-wrapper {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.success-modal-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  background: #f0f9f4;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successIconPop 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.success-modal-icon i {
  font-size: 40px;
  color: #28a745;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: checkmarkDraw 0.4s ease forwards;
  animation-delay: 0.4s;
}

.success-modal-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #28a745;
  opacity: 0;
  animation: circleExpand 0.5s ease forwards;
  animation-delay: 0.2s;
}

.success-modal-title {
  color: #28a745;
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 600;
}

.success-modal-message {
  color: #666;
  font-size: 16px;
  margin: 0 0 25px;
  line-height: 1.5;
}

.success-modal-actions {
  margin-top: 20px;
}

.success-modal-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.success-modal-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.success-modal-btn:active {
  transform: translateY(0);
}

/* Success Modal Animations */
@keyframes successIconPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmarkDraw {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes circleExpand {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Success Modal Responsive Design */
@media (max-width: 768px) {
  .success-modal-content,
  .confirm-modal-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .success-modal-title,
  .confirm-modal-title {
    font-size: 20px;
  }

  .success-modal-message,
  .confirm-modal-message {
    font-size: 14px;
  }

  .success-modal-btn,
  .confirm-modal-btn-submit,
  .confirm-modal-btn-cancel {
    padding: 10px 25px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .success-modal-icon,
  .confirm-modal-icon {
    width: 60px;
    height: 60px;
  }

  .success-modal-icon i,
  .confirm-modal-icon i {
    font-size: 30px;
  }

  .success-modal-content,
  .confirm-modal-content {
    padding: 25px 15px;
  }
}

/* Confirmation Modal Styles */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.confirm-modal-container {
  position: relative;
  padding: 20px;
}

.confirm-modal-content {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 400px;
}

.confirm-modal-overlay.active .confirm-modal-content {
  transform: translateY(0);
  opacity: 1;
}

.confirm-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.confirm-modal-close:hover {
  background: #f1f3f5;
  color: #a20c0c;
}

.confirm-modal-icon-wrapper {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.confirm-modal-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  background: #f0f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: confirmIconPop 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.confirm-modal-icon i {
  font-size: 40px;
  color: #7338A0;
  animation: iconFloat 2s ease-in-out infinite;
}

.confirm-modal-title {
  color: #333;
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 600;
}

.confirm-modal-message {
  color: #666;
  font-size: 16px;
  margin: 0 0 25px;
  line-height: 1.5;
}

.confirm-modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-modal-btn-cancel {
  background: #f1f3f5;
  color: #666;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-modal-btn-submit {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.confirm-modal-btn-cancel:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.confirm-modal-btn-submit:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

@keyframes confirmIconPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive adjustments for message modal */
@media (max-width: 480px) {
  #message-modal .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .thank-you-message {
    font-size: 1.5rem;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* Hero Section Small Mobile */
  .hero {
    height: 250px;
    animation: none !important;
    background-attachment: scroll !important;
  }

  .hero-overlay {
    padding: 10px;
    animation: none !important;
  }

  .hero-overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .hero-overlay p {
    font-size: 0.9rem;
    max-width: 95%;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  .logo img {
      height: 60px; /* Smaller logo on very small screens */
  }
  
  .logo-text h1 {
      font-size: 1.5rem; /* Smaller heading on very small screens */
  }
}

@media (max-width: 320px) {
  /* Hero Section Extra Small Mobile */
  .hero {
    height: 220px;
  }

  .hero-overlay h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .hero-overlay p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* Feedback Login Required Modal Styles */
.feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(49, 37, 37, 0.5);
  z-index: 1000;
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.feedback-modal.show {
  display: flex;
  animation: feedbackModalFadeIn 0.3s ease-out;
}

.feedback-modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.feedback-modal-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  position: relative;
}

.feedback-modal-logo {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
}

.feedback-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
}

.feedback-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feedback-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.feedback-modal-body {
  padding: 1.5rem;
  text-align: center;
}

.feedback-modal-body p {
  margin: 0 0 1rem;
  color: #666;
  line-height: 1.5;
}

.feedback-modal-body p:last-child {
  margin-bottom: 1.5rem;
}

.feedback-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.feedback-modal-login-btn,
.feedback-modal-register-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.feedback-modal-login-btn {
  background: #7338A0;
  color: white;
}

.feedback-modal-register-btn {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.feedback-modal-login-btn:hover {
  background: #581845;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(115, 56, 160, 0.2);
}

.feedback-modal-register-btn:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Responsive adjustments for feedback login modal */
@media (max-width: 480px) {
  .feedback-modal-content {
    width: 95%;
    margin: 1rem;
  }

  .feedback-modal-header {
    padding: 1rem;
  }

  .feedback-modal-body {
    padding: 1rem;
  }

  .feedback-modal-buttons {
    flex-direction: column;
  }

  .feedback-modal-login-btn,
  .feedback-modal-register-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Locked form fields styles */
.feedback-form.locked input,
.feedback-form.locked textarea {
  cursor: not-allowed;
  background-color: #fafafa;
  border: 1px solid #e5e7eb;
  position: relative;
}

.feedback-form.locked input:hover,
.feedback-form.locked textarea:hover {

}

.feedback-form.locked .form-row {
  position: relative;
}

.feedback-form.locked .form-row::before {
  content: "Login required to submit feedback";
  position: absolute;
  top: -25px;
  left: 0;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Stop icon overlay on hover */
.feedback-form.locked input:hover::before,
.feedback-form.locked textarea:hover::before {
  content: "⛔";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #ff4444;
  z-index: 1;
  pointer-events: none;
}

.feedback-form.locked textarea:hover::before {
  top: 20px;
  transform: none;
}

/* Add a semi-transparent overlay on hover */
.feedback-form.locked input:hover,
.feedback-form.locked textarea:hover {
  position: relative;
}

.feedback-form.locked input:hover::after,
.feedback-form.locked textarea:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 68, 68, 0.05);
  border-radius: 10px;
  pointer-events: none;
}

/* Success panel replacing form */
.feedback-success {
  display: none;
  background: rgba(115,56,160,0.06);
  border: 1px solid rgba(115,56,160,0.25);
  color: #3b0764;
  padding: 20px;
  border-radius: 12px;
  font-weight: 500;
}