* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: url("../assets/images/bg.png");
  background-size: cover;
  min-height: 100vh;
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background-attachment: fixed;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #e8f4f82c;
  min-height: 100vh;
}

.contact-header {
  background: linear-gradient(135deg, #e8f4f8 0%, #d1e7dd 100%);
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
}

.contact-header h2 {
  color: #2c5f5f;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
}

.contact-form {
  padding: 0;
}

.form-section {
  padding: 40px;
  height: 100%;
}

.form-section h4 {
  color: #4f4f4f !important;
  font-size: 18px;
  font-weight: 800;
  padding-bottom: 10px;
}

.form-label {
  color: #495057;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-control:focus,
.form-select:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

.form-control::placeholder {
  color: #6c757d;
  font-style: italic;
}

textarea.form-control {
  resize: vertical;
  min-height: 200px;
}

.word-count {
  text-align: right;
  margin-top: 5px;
}

.word-count small {
  color: #6c757d;
  font-size: 0.85rem;
}

.form-check {
  margin-bottom: 0;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  border: 2px solid #ced4da;
  border-radius: 4px;
}

.form-check-input:checked {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.form-check-label {
  color: #495057;
  font-size: 0.95rem;
  margin-left: 5px;
}

.recaptcha-icon {
  margin-left: 10px;
}

.recaptcha-logo {
  width: 24px;
  height: 24px;
  background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
  border-radius: 3px;
  position: relative;
}

.recaptcha-logo::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.btn-submit {
  background: #3681861a;
  border: none;
  color: #368186;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
  background: #3681861a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: #368186;
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-header h2 {
    font-size: 2rem;
  }

  .form-section {
    padding: 20px;
  }

  .left-section {
    border-right: none;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 20px;
  }

  .btn-submit {
    width: 100%;
  }
}

/* Custom scrollbar for textarea */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.about-header {
  margin-top: 80px !important;
}

.about-header-container img {
  transform: translateY(-45%) !important;
  right: -5px !important;
}

/* Formspree Success Popup Styles */
.formspree-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.formspree-popup.show {
  display: flex;
}

.formspree-popup-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.formspree-popup-content h3 {
  color: #29343d;
  font-size: 18px !important;
  margin-bottom: 15px;
}

.formspree-popup-content p {
  margin-bottom: 20px;
  font-size: 16px !important;
  color: #29343d;
}

.formspree-popup-close {
  background: #3681861a;
  color: #368186;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.formspree-popup-close:hover {
  background: #3681861a;
}

.form-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-submit.loading {
  cursor: not-allowed;
}

.profile-button {
  z-index: 10 !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.main-content .container {
  padding: 0 40px !important;
}

@media (max-width: 991) {
  .main-content .container {
    padding: 0 0px !important;
  }
}

@media (max-width: 992px) {
  .footer {
    bottom: -100px !important;
  }
  .about-header {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  .main-content .container {
    padding: 0 !important;
  }
  .form-section label {
    margin-top: 10px;
  }
  .btn-submit {
    padding: 8px 20px;
}
}

.form-section:nth-child(1) {
  padding-right: 20px;
  padding-bottom: 0;
}

.form-section:nth-child(2) {
  padding-left: 20px;
}

.fake-recaptcha {
  display: flex;
  align-items: center;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  padding: 10px;
  width: 300px;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
}
.fake-recaptcha input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
.fake-recaptcha img {
  width: 30px;
  height: 30px;
  margin-left: auto;
}
