/* Application Form Custom Styles */

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
  padding: 7px 10px;
  height: 35px;
  border-radius: 0.25rem;
}

input[type="radio"]:checked:after {
  width: 10px;
  height: 10px;
}

h5 {
  font-size: 22px;
}

/* London Section Specific Styles - Maintains same style as Driver Information */

.london-section .form-check {
  margin-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.london-section .form-check-input:checked {
  background-color: #14a077;
  border-color: #14a077;
}

.section-header h4,
.section-header h5 {
  color: #14a077;
  font-weight: 700;
  font-size: 1.4rem;
}

.section-header h5 {
  font-size: 1.2rem;
}

.form-label.fw-bold {
  color: #495057;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.form-control,
.form-select {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.employer-section {
  background-color: #f8f9fa !important;
  border: 2px solid #dee2e6 !important;
  transition: all 0.3s ease;
}

.employer-section:hover {
  border-color: #14a077 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(20, 160, 119, 0.2);
}

.card {
  border: none;
  border-radius: 8px;
}

.card-header {
  border-radius: 8px 8px 0 0 !important;
  background: linear-gradient(45deg, #14a077, #0f7c5e) !important;
  padding: 1.25rem 2rem;
}

.card-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.form-control:focus,
.form-select:focus {
  border-color: #14a077;
  box-shadow: 0 0 0 0.2rem rgba(20, 160, 119, 0.25);
}

.btn-primary {
  background: linear-gradient(45deg, #14a077, #0f7c5e);
  border: none;
  border-radius: 8px;
  padding: 14px 35px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0f7c5e, #0a5c46);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(20, 160, 119, 0.3);
}

.btn-outline-primary {
  border: 2px solid #14a077;
  color: #14a077;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: #14a077;
  border-color: #14a077;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 160, 119, 0.25);
}

.btn-outline-danger {
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 6px 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-check-label {
  pointer-events: none;
}

.is-invalid {
  display: block;
  font-size: 0.875rem;
  color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-header h3 {
    font-size: 1.5rem;
  }

  .section-header h4 {
    font-size: 1.2rem;
  }

  .section-header h5 {
    font-size: 1.1rem;
  }

  .employer-section h5 {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .btn-outline-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Animation for adding new employers */
.employer-section {
  animation: slideIn 0.3s ease-out;
}

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

/* Loading state for submit button */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Consent and Acknowledgement Sections */
.consent-text,
.acknowledgement-text {
  background-color: #f8f9fa;
  border-left: 4px solid #14a077;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.consent-text p,
.acknowledgement-text p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.consent-text p:last-child,
.acknowledgement-text p:last-child {
  margin-bottom: 0;
}

/* Small button styling */
.btn-sm.btn-outline-primary {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Signature Section Styles */
.signature-section {
  background-color: #f8f9fa !important;
  border: 2px solid #14a077 !important;
}

.signature-section h5 {
  color: #14a077;
  font-weight: 700;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.signature-preview-box {
  border: 2px dashed #14a077 !important;
  background-color: #ffffff;
  min-height: 120px;
  position: relative;
}

.signature-preview-box::before {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background-color: #ccc;
  border-bottom: 1px solid #999;
}

.signature-text {
  font-family: "Brush Script MT", "Lucida Handwriting", cursive !important;
  font-size: 28px !important;
  color: #2c3e50 !important;
  font-weight: normal !important;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  display: inline-block;
}

.signature-preview-container small {
  font-style: italic;
  color: #6c757d;
}

/* Fallback fonts for signature */
@font-face {
  font-family: "HandwritingFont";
  src: local("Brush Script MT"), local("Lucida Handwriting"), local("Segoe Script"), local("Courier New");
}

.signature-text {
  font-family: "HandwritingFont", "Brush Script MT", "Lucida Handwriting", "Segoe Script", cursive !important;
}
