/* Contact Section Styles */
.contact-section {
  background-color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 100%;
  margin: 0 auto;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-description {
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(43, 92, 230, 0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: #EF4444;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: #EF4444;
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
}

.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

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

.submit-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
}

.submit-message.success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.submit-message.error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Contact Info */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  padding: 2rem;
}

/* Contact section styling (not footer) */
.contact-section .contact-info {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--border-primary);
}

.contact-info-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-info-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  background-color: var(--background-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon img {
  width: 20px;
  height: 20px;
  filter: hue-rotate(200deg);
}

.contact-method-content {
  flex: 1;
  min-width: 0;
}

.contact-method-title {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  font-size: var(--font-size-base);
}

.contact-method-info {
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Social Links */
.contact-social-title {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  font-size: var(--font-size-base);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.social-link:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.social-link img {
  width: 20px;
  height: 20px;
  transition: var(--transition-transform);
  opacity: 1;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  background: transparent;
}

/* Ensure PNG icons are visible against blue background */
.contact-section .social-link img[src$=".png"] {
  filter: brightness(1.2) contrast(1.1) saturate(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Map */
.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  height: 300px;
  transition: all var(--transition-base);
}

.contact-map:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(43, 92, 230, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-base);
}

.contact-map:hover .map-overlay {
  opacity: 1;
}

.map-click-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.map-click-hint span {
  font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .contact-form-wrapper,
  .contact-info {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-title {
    font-size: var(--font-size-xl);
  }

  .contact-info-title {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper,
  .contact-info {
    padding: 1rem;
  }

  .contact-method {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .contact-method-icon {
    margin-bottom: 0.5rem;
  }

  .contact-map {
    height: 200px;
  }
}

/* Robot Verification Checkbox */
.robot-verification {
  margin: 1rem 0;
}

.robot-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  user-select: none;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.robot-checkbox:hover {
  background-color: #f9fafb;
  border-color: #3b82f6;
}

.robot-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background-color: #ffffff;
}

.robot-checkbox input[type="checkbox"]:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.robot-checkbox input[type="checkbox"]:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.robot-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.robot-checkbox input[type="checkbox"].error {
  border-color: #ef4444;
}

.robot-text {
  font-weight: 500;
  cursor: pointer;
}

.robot-checkbox:hover input[type="checkbox"] {
  border-color: #3b82f6;
}