/* Contact Form Specific Styles - Enterprise Grade */

/* Security: Hide honeypot fields from users but keep accessible to bots */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-input-light::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.form-input-light:focus {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  outline: none !important;
}

#submitBtn:disabled {
  background: var(--text-muted) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

#submitBtn:enabled {
  background: var(--gradient-primary) !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

#submitBtn:enabled:hover {
  background: linear-gradient(135deg, var(--orange-hover), var(--orange-dark)) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

/* Contact page specific styles */
.contact-header {
  text-align: center;
}

.contact-header h1 {
  color: white;
  font-size: 48px;
}

.contact-header .subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Add floating animation to contact header */
.section.compact.contact-animation {
  position: relative;
  overflow: hidden;
}

.section.compact.contact-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
  pointer-events: none;
}

.submit-button-container {
  text-align: center;
  margin-top: 30px;
}

.address-block {
  line-height: 2;
  margin-bottom: 25px;
}

.address-block.compact {
  line-height: 1.8;
}

.address-indent {
  margin-left: 20px;
}

.contact-info {
  line-height: 2;
}

.card.office-card {
  margin-top: 20px;
}

/* Hidden conditional form sections */
#visaDetails,
#travelDetails {
  display: none;
}

/* Honeypot fields */
input[name="_honey"] {
  display: none !important;
}

input[name="email_confirm"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Footer center alignment */
.footer-center {
  text-align: center;
}

/* Character counter styling */
.char-counter {
  text-align: right;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.char-counter.warning {
  color: var(--orange);
  font-weight: 600;
}

/* Success Toast Notification */
.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-family: inherit;
  font-weight: 600;
  animation: slideIn 0.3s ease-out;
}

.success-toast-close {
  background: none;
  border: none;
  color: white;
  margin-left: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 0;
  line-height: 1;
}

.success-toast-close:hover {
  opacity: 0.8;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Validation Summary near submit button */
.validation-summary {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.4);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: none;
}

.validation-summary.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.validation-summary-title {
  font-weight: 700;
  color: #dc2626;
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.validation-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.validation-summary-list li {
  padding: 8px 0;
  color: #dc2626;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.validation-summary-list li:hover {
  background: rgba(220, 38, 38, 0.05);
  padding-left: 8px;
  border-radius: 6px;
}

.validation-summary-list li::before {
  content: "→";
  flex-shrink: 0;
  font-weight: bold;
}

/* Dark mode validation summary */
[data-theme="dark"] .validation-summary {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.5);
}

[data-theme="dark"] .validation-summary-title,
[data-theme="dark"] .validation-summary-list li {
  color: #fca5a5;
}

[data-theme="dark"] .validation-summary-list li:hover {
  background: rgba(220, 38, 38, 0.1);
}
