/* CONTACT FORM MODAL - NO BOOTSTRAP */

.contactform-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42,123,155,0.10);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow-y: auto;
}

.contactform-modal-content {
  background: #fff;
  border-radius: 22px;
  max-width: 900px;
  width: 900px;
  box-shadow: 0 4px 32px rgba(42,123,155,0.09);
  animation: contactform-modal-appear 0.36s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  padding: 40px 40px 40px 40px;
}

@keyframes contactform-modal-appear {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.contactform-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 10px 28px;
  border-bottom: 1px solid #f0f0f0;
}

.summary-section h5 .fas {
    margin-right: 8px;
}

#gardenSize, #lawnSize {
    margin-left: 10px;
}

.contactform-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2a7b9b;
  margin: 0;
}

.contactform-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.contactform-close:hover { color: #2a7b9b; }

/* --- MOBIEL VRIENDELIJKHEID EN DUIDELIJKE SLUITKNOP --- */
@media (max-width: 780px) {
  .contactform-modal-content {
    width: 100vw;
    max-width: 100vw;
    min-width: unset;
    margin: 0;
    padding: 0 0 24px 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 18px rgba(42,123,155,0.10);
  }
  .contactform-modal-header,
  .contactform-modal-body {
    padding: 16px 4vw 16px 4vw;
  }
  .contactform-step-title {
    font-size: 1.08rem;
    padding-bottom: 7px;
  }
  .contactform-form-step {
    padding: 10px 0 10px 0;
    margin-bottom: 10px;
  }
  .contactform-form-row {
    width: 100% !important;
    flex: 1 1 100%;
    margin-bottom: 12px;
  }
  .contactform-form-group {
    gap: 10px 0;
    margin-bottom: 12px;
  }
  .contactform-form-control,
  .contactform-form-select,
  .contactform-textarea {
    font-size: 1.12rem;
    padding: 14px 12px;
    border-radius: 12px;
  }
  .contactform-btn {
    width: 100%;
    font-size: 1.13rem;
    padding: 16px 0;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(42,123,155,0.10);
  }
  .contactform-form-navigation {
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
  }
  .contactform-progress {
    margin-bottom: 12px;
  }
  .contactform-summary {
    padding: 12px 4px;
    font-size: 1.04rem;
  }
  .contactform-step1-row {
    flex-direction: column;
    gap: 0;
  }
  .contactform-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 56px;
    height: 56px;
    font-size: 2.3rem;
    background: #fff;
    color: #2a7b9b;
    border: 2px solid #2a7b9b;
    border-radius: 50%;
    z-index: 99999;
    box-shadow: 0 2px 12px rgba(42,123,155,0.17);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border 0.2s;
  }
  .contactform-close:active,
  .contactform-close:focus {
    background: #2a7b9b;
    color: #fff;
    border-color: #2a7b9b;
    outline: none;
  }
}

@media (max-width: 480px) {
  .contactform-modal-header,
  .contactform-modal-body {
    padding: 10px 2vw 10px 2vw;
  }
  .contactform-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
  }
}

.contactform-modal-body {
  padding: 24px 28px 28px 28px;
}

/* Progress Bar */
.contactform-progress {
  height: 5px;
  background: #e3e3e3;
  border-radius: 3px;
  margin-bottom: 28px;
  overflow: hidden;
}
.contactform-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2a7b9b 0%, #57c785 60%, #eddd53 100%);
  transition: width 0.3s;
}

/* Steps */
.contactform-form-step {
  display: none;
  animation: contactform-stepfade 0.35s cubic-bezier(0.4,0,0.2,1);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(42,123,155,0.06);
  border-left: 4px solid #2a7b9b;
  padding: 32px 32px 24px 32px;
  margin-bottom: 22px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
@keyframes contactform-stepfade {
  from { opacity: 0; transform: translateY(36px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contactform-form-step.active {
  box-shadow: 0 8px 32px rgba(42,123,155,0.13);
  border-left: 4px solid #57c785;
}

/* Step 1: side-by-side fields (desktop) */
.contactform-step1-row {
  display: flex;
  gap: 20px;
}
.contactform-step1-row .contactform-form-group {
  flex: 1 1 0;
}
@media (max-width: 700px) {
  .contactform-step1-row {
    flex-direction: column;
    gap: 0;
  }
}

.contactform-form-group {
  margin-bottom: 32px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 18px;
}
.contactform-form-row {
  flex: 1 1 200px;
  width: 50% !important;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.contactform-form-row:last-child {
  margin-bottom: 0;
}

.contactform-form-step.active {
  display: block;
}

.contactform-step-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #2a7b9b;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #eddd53;
  padding-bottom: 10px;
  background: linear-gradient(90deg, #2a7b9b 0%, #eddd53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contactform-step-title i {
  font-size: 1.3em;
  color: #57c785;
  background: #eafaf3;
  border-radius: 50%;
  padding: 7px 10px 7px 10px;
  margin-right: 6px;
}


.contactform-step-indicator {
  position: absolute;
  top: 12px;
  right: 22px;
  background: #2a7b9b;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 3px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(42,123,155,0.10);
}

/* Form Elements */
.contactform-form-label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  color: #333;
}
.contactform-form-control,
.contactform-form-select,
.contactform-textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 1.05rem;
  border: 1.7px solid #dbe7ee;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f6fbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(42,123,155,0.04);
}
.contactform-form-control:focus,
.contactform-form-select:focus,
.contactform-textarea:focus {
  outline: none;
  border-color: #57c785;
  box-shadow: 0 0 0 2px rgba(87,199,133,0.13);
}
.contactform-textarea {
  min-height: 90px;
  resize: vertical;
}

/* Navigation Buttons */
.contactform-form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
}
.contactform-btn {
  padding: 10px 22px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(42,123,155,0.07);
}
.contactform-btn-primary {
  background: linear-gradient(90deg, #2a7b9b 0%, #57c785 100%);
  color: #fff;
}
.contactform-btn-secondary {
  background: #f5f5f5;
  color: #2a7b9b;
  border: 1.5px solid #e3e3e3;
}
.contactform-btn-success {
  background: linear-gradient(90deg, #57c785 0%, #eddd53 100%);
  color: #2a7b9b;
}
.contactform-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(42,123,155,0.13);
}

/* Summary Section */
.contactform-summary {
  background: linear-gradient(90deg, #eafaf3 0%, #f7fafc 100%);
  border-radius: 14px;
  padding: 28px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(87,199,133,0.08);
  border-left: 7px solid #eddd53;
}
.contactform-summary h5 {
  color: #2a7b9b;
  font-size: 1.13rem;
  margin-bottom: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contactform-summary h5 i {
  color: #eddd53;
}

.contactform-summary h5 {
  color: #2a7b9b;
  font-size: 1.07rem;
  margin-bottom: 13px;
  font-weight: 600;
}
.contactform-summary p {
  margin: 7px 0;
  color: #444;
  line-height: 1.5;
}

#lawn_size_field {
    margin-bottom: 10px;
}

/* Validation */
.contactform-invalid {
  border-color: #dc3545 !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.contactform-invalid-feedback {
    color: #dc3545;
    font-size: 0.92rem;
    margin-top: -6px;
    margin-bottom: 12px;
}

/* Custom Checkbox/Radio */
.contactform-check {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}
.contactform-check-input {
  margin-right: 8px;
  accent-color: #57c785;
  width: 18px;
  height: 18px;
}
.contactform-check-label {
  user-select: none;
  cursor: pointer;
  color: #333;
}

/* Responsive Design */
@media (max-width: 600px) {
  .contactform-modal-dialog {
    width: 99vw;
    max-width: 99vw;
    margin: 10px 0;
    border-radius: 0;
    padding: 0;
  }
  .contactform-modal-header,
  .contactform-modal-body {
    padding-left: 8vw;
    padding-right: 8vw;
  }
  .contactform-form-navigation {
    flex-direction: column;
    gap: 8px;
  }
  .contactform-btn {
    width: 100%;
  }
}

.contact-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right bottom, #ffffff, #f8f9fa);
}

.contact-modal .modal-header {
    border-bottom: none;
    padding: 25px 25px 0;
    background: transparent;
}

.contact-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
}

.contact-success-notification {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 340px;
  max-width: 95vw;
  padding: 32px 48px;
  background: linear-gradient(100deg, #43e97b 0%, #38f9d7 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  border-radius: 40px;
  box-shadow: 0 12px 48px 0 rgba(60, 180, 120, 0.22), 0 0 0 8px rgba(60,180,120,0.07);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  animation: fadeInOutSuccess 3.5s cubic-bezier(.23,1.13,.32,1);
  text-align: center;
  letter-spacing: 0.02em;
  overflow: visible;
}

.contact-success-center {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.success-icon {
  font-size: 2.7rem;
  line-height: 1;
  margin-right: 18px;
  filter: drop-shadow(0 0 16px #fff8);
  animation: popIcon 0.5s, glowIcon 2.5s infinite alternate;
}

@keyframes fadeInOutSuccess {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(0.95);}
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08);}
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1);}
  90% { opacity: 1; transform: translate(-50%, -50%) scale(1);}
  100% { opacity: 0; transform: translate(-50%, -60%) scale(0.95);}
}

@keyframes popIcon {
  0% { transform: scale(0.5);}
  60% { transform: scale(1.4);}
  100% { transform: scale(1);}
}

@keyframes glowIcon {
  0% { filter: drop-shadow(0 0 16px #fff8) drop-shadow(0 0 4px #43e97b); }
  100% { filter: drop-shadow(0 0 32px #fff) drop-shadow(0 0 8px #38f9d7); }
}

.fade-in {
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: fadeInOutSuccess 3.5s cubic-bezier(.23,1.13,.32,1);
}

.fade-out {
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-check {
    margin-bottom: 10px;
    padding-left: 30px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-left: -30px;
    border: 2px solid #e9ecef;
}

.form-check-input:checked {
    background-color: #57c785;
    border-color: #57c785;
}

.form-check-label {
    font-size: 0.95rem;
    padding-top: 2px;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.step-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #2a7b9b 0%, #57c785 100%);
}

.summary-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #57c785;
}

.summary-section h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.dynamic-field {
    display: none;
    animation: slideDown 0.3s ease-out;
}

.dynamic-field.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress {
    height: 6px;
    margin: 0 -25px 30px;
    background-color: #e9ecef;
    border-radius: 0;
}

.progress-bar {
    background: linear-gradient(90deg, #2a7b9b 0%, #57c785 100%);
    transition: width 0.5s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.summary-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.summary-section h5 {
    color: #0d6efd;
    margin-bottom: 10px;
}

.form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-navigation .btn {
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-navigation .btn-primary {
    background: linear-gradient(90deg, #2a7b9b 0%, #57c785 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-navigation .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.form-navigation .btn-secondary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
}

.form-navigation .btn-success {
    background: linear-gradient(90deg, #57c785 0%, #2a7b9b 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

#specificQuestions {
    margin-top: 20px;
}

.contact-modal .form-check {
    margin-bottom: 10px;
}

.contact-modal .modal-body {
    padding: 25px;
}

.step-title {
    margin-bottom: 25px;
    color: #0d6efd;
}

.form-label {
    font-weight: 500;
}
