.contact-section {
  position: relative;
  padding: 0px 60px;
}
.castle-container.contact {
  display: grid;
  padding: 80px 0;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  align-items: start;
}

.contact-section .contact-bg {
  position: absolute;
  left: 0;
  z-index: -1;
  bottom: 0;
}
/* Left Section - Office Details */
.office-details {
  padding: 40px;
  border-radius: 15px;
}
.office-details h2 {
  color: var(--secondary);
  margin-bottom: 30px;
  font-size: 28px;
}

.contact-item {
  gap: 5px;
  display: flex;
  margin-bottom: 25px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  display: flex;
  width: 24px;
  height: 24px;
  color: var(--secondary);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item {
  flex: 1;
}

.contact-item p {
  color: rgba(0, 0, 0, 1);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #026cb5;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
p {
  color: rgba(0, 0, 0, 0.74);
}
/* Contact Form 7 Styling */
.contact-form .wpcf7-form {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-form .wpcf7-form p {
  margin: 0;

  width: calc(50% - 10px);
}
.contact-form .wpcf7-form p:nth-last-of-type(1),
.contact-form .wpcf7-form p:nth-last-of-type(2) {
  width: 100%;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-top: 5px;
}

.contact-form .wpcf7-form-control.wpcf7-text,
.contact-form .wpcf7-form-control.wpcf7-email,
.contact-form .wpcf7-form-control.wpcf7-tel,
.contact-form .wpcf7-form-control.wpcf7-number,
.contact-form .wpcf7-form-control.wpcf7-date,
.contact-form .wpcf7-form-control.wpcf7-select,
.contact-form .wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.53);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #fff;
  box-sizing: border-box;
}

.contact-form .wpcf7-form-control::placeholder {
  color: #aaa;
}

.contact-form .wpcf7-form-control:focus {
  outline: none;
  border-color: #026cb5;
}

.contact-form .wpcf7-form-control.wpcf7-not-valid {
  border-color: #dc3545;
}

.contact-form .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.contact-form .wpcf7-form-control.wpcf7-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.contact-form .wpcf7-submit {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--tertiary);
  text-decoration: none;
  font-family: var(--primary-font);
  border-radius: 25px;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 40px;
  transition: all 0.3s ease;
  border: none;
}

.contact-form .wpcf7-submit:hover:not(:disabled) {
  background: #e09a2a;
  transform: translateY(-2px);

  box-shadow: 0 4px 12px rgba(251, 176, 59, 0.3);
}

.contact-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.contact-form .wpcf7-spinner {
  margin-left: 10px;
}

/* Response Messages */
.contact-form .wpcf7-response-output {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
}

.contact-form .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form .wpcf7-mail-sent-ng,
.contact-form .wpcf7-validation-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-form .wpcf7-spam-blocked {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}
*/

/* Hidden Fields */
.contact-form .hidden-fields-container {
  display: none;
}

/* Success Message (Custom) */
.success-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.success-message.show {
  display: block;
}

@media (max-width: 1200px) {
  .castle-container.contact {
    margin: 60px auto;
    gap: 25px;
    grid-template-columns: 1fr 1fr;
  }

  .office-details,
  .contact-form {
    padding: 35px;
  }

  .office-details h2 {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .contact-item p {
    font-size: 16px;
  }

  .contact-icon {
    width: 22px;
    height: 22px;
    font-size: 18px;
  }

  .contact-form .wpcf7-form p {
    width: calc(50% - 12px);
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  .castle-container.contact {
    grid-template-columns: 1fr; /* single column */
    gap: 0;
    padding: 20px 0;
    margin: 0;
  }
  .contact-item {
    margin-bottom: 15px;
  }

  .office-details h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .office-details,
  .contact-form {
    padding: 30px 20px;
  }

  .office-details h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .contact-bg {
    display: none;
  }
  .contact-item {
    gap: 12px;
    margin-bottom: 20px;
  }

  .contact-item p {
    font-size: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .office-details,
  .contact-form {
    padding: 25px 15px;
    border-radius: 12px;
  }

  .office-details h2 {
    font-size: 22px;
  }

  .contact-icon {
    font-size: 18px;
  }

  .contact-item p {
    font-size: 14px;
  }

  .submit-btn {
    width: 100%;
    padding: 12px 30px;
    font-size: 15px;
  }
}
