/**
 * Contact Form Styles
 */

.ndc-contact-form-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}

.ndc-contact-form-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.ndc-contact-form-left {
  flex: 1;
}

.ndc-contact-form-right {
  flex: 1;
}

.ndc-contact-form-title {
  font-size: 30px;
  font-weight: 800;
  color: #ff7a1a;
  margin-bottom: 12px;
  line-height: 1.2;
}

.ndc-contact-form-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Form Styles */
.ndc-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ndc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ndc-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ndc-form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.ndc-form-input,
.ndc-form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ndc-form-input:focus,
.ndc-form-textarea:focus {
  outline: none;
  border-color: #ff7a1a;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.1);
}

.ndc-form-input::placeholder,
.ndc-form-textarea::placeholder {
  color: #999;
}

.ndc-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.ndc-form-error {
  display: none;
  font-size: 13px;
  color: #dc2626;
  margin-top: 4px;
}

.ndc-form-error.show {
  display: block;
}

.ndc-form-input.error,
.ndc-form-textarea.error {
  border-color: #dc2626;
}

.ndc-form-input.error:focus,
.ndc-form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* reCAPTCHA Container */
.ndc-recaptcha-container {
  margin: 8px 0;
  min-height: 78px;
  display: flex;
  align-items: center;
}

/* Form Messages */
.ndc-form-messages {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.ndc-form-messages.show {
  display: block;
}

.ndc-form-messages.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.ndc-form-messages.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
}

/* Submit Button */
#ndc-submit-btn {
  margin-top: 8px;
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

#ndc-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#ndc-submit-btn .ndc-btn-spinner {
  display: inline-block;
}

/* Contact Form Image */
.ndc-contact-form-image {
  position: sticky;
  top: 20px;
  border-radius: var(--ndc-radius-card);
  overflow: hidden;
  box-shadow: var(--ndc-shadow);
  aspect-ratio: 4 / 5;
}

.ndc-contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .ndc-contact-form-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .ndc-contact-form-right {
    order: -1; /* Image on top on mobile */
  }
  
  .ndc-contact-form-image {
    position: relative;
    top: 0;
    max-height: 400px;
  }
  
  .ndc-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ndc-contact-form-title {
    font-size: 24px;
  }
  
  .ndc-contact-form-description {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .ndc-contact-form {
    gap: 16px;
  }
  
  .ndc-form-row {
    gap: 16px;
  }
}
