/*--------------------------------------------------------------
# LynkCar Form System
  One look for every form on the public site, the user portal
  and the vendor portal (reference: user driving-license form).
  Loaded after style.css; everything is scoped to body.lc-forms.
  The footer newsletter form is excluded so it keeps its own design.
  Brand color comes from the admin setting via var(--primary-color).

  >>> CONTENTS
    # Tokens
    # Form cards
    # Labels
    # Inputs, textarea, date/time, file
    # Input groups & password toggles
    # Selects (nice-select, select2)
    # Buttons
    # Auth tabs (login / registration)
    # Step tabs (multi-step forms)
    # Profile header (banner + avatar)
--------------------------------------------------------------*/

/*-------------------------------------------------
    [ ## Tokens ]
*/
.lc-forms {
  --lf-surface: #ffffff;
  --lf-border: #eaecf0;
  --lf-border-strong: #d0d5dd;
  --lf-border-hover: #98a2b3;
  --lf-text: #344054;
  --lf-text-muted: #667085;
  --lf-placeholder: #98a2b3;
  --lf-heading: #101828;
  --lf-danger: #f04438;
  --lf-brand: var(--primary-color, #15b887);
  --lf-brand-soft: color-mix(in srgb, var(--lf-brand) 10%, transparent);
  --lf-brand-dark: color-mix(in srgb, var(--lf-brand) 70%, #000);
  --lf-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --lf-shadow-menu: 0 12px 24px -4px rgba(16, 24, 40, 0.12);
  --lf-shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --lf-radius: 10px;
  --lf-card-radius: 14px;
  --lf-field-h: 46px;
}

/*-------------------------------------------------
    [ ## Form cards ]
*/
/* portal cards: title strip inside the card */
.lc-forms .custom-card {
  background: var(--lf-surface);
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-card-radius);
  box-shadow: var(--lf-shadow-xs);
  overflow: hidden;
}
.lc-forms .custom-card.mt-10 {
  margin-top: 0 !important;
}
.lc-forms .custom-card > .dashboard-header-wrapper {
  min-height: 68px;
  margin: 0;
  padding: 14px 24px;
  gap: 12px;
  border-bottom: 1px solid var(--lf-border);
}
.lc-forms .custom-card > .dashboard-header-wrapper .title {
  font-size: 17px;
  font-weight: 700;
  color: var(--lf-heading);
  margin: 0;
}
.lc-forms .custom-card .card-body {
  background: transparent;
  border-radius: 0;
  padding: 24px;
}
@media only screen and (max-width: 575px) {
  .lc-forms .custom-card > .dashboard-header-wrapper {
    padding: 14px 18px;
  }
  .lc-forms .custom-card .card-body {
    padding: 18px;
  }
}

/* public-site form cards */
.lc-forms .register-section .register-form .login-form,
.lc-forms .forgot-password .forgot-password-area,
.lc-forms .verification-otp .verification-otp-area,
.lc-forms .new-password .new-password-area,
.lc-forms .contact-section .contact-form-area,
.lc-forms .contact-widget-box,
.lc-forms .car-searching-area .car-booking-area,
.lc-forms .appointment-preview .booking-area {
  background: var(--lf-surface);
  border: 1px solid var(--lf-border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -8px rgba(16, 24, 40, 0.08);
}
.lc-forms .register-section .register-form .login-form,
.lc-forms .car-searching-area .car-booking-area {
  padding: 32px;
}
@media only screen and (max-width: 575px) {
  .lc-forms .register-section .register-form .login-form,
  .lc-forms .car-searching-area .car-booking-area {
    padding: 20px;
  }
}

/*-------------------------------------------------
    [ ## Labels ]
*/
.lc-forms form:not(.subscribe-form > form) .form-group {
  margin-bottom: 18px;
}
.lc-forms form:not(.subscribe-form > form) label:not(.form-check-label):not(.custom-check-group label) {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lf-text);
  margin-bottom: 6px;
}
/* required marker */
.lc-forms form:not(.subscribe-form > form) label span,
.lc-forms form:not(.subscribe-form > form) label span.text--base,
.lc-forms form:not(.subscribe-form > form) label span.text-danger {
  color: var(--lf-danger) !important;
  margin-left: 2px;
}
.lc-forms form:not(.subscribe-form > form) label span.up-optional,
.lc-forms form:not(.subscribe-form > form) label span.lf-optional {
  color: var(--lf-placeholder) !important;
  font-weight: 400;
  margin-left: 4px;
}
.lc-forms form:not(.subscribe-form > form) small,
.lc-forms form:not(.subscribe-form > form) .form-text {
  font-size: 12.5px;
  color: var(--lf-text-muted);
}
.lc-forms form:not(.subscribe-form > form) .form-check-label {
  font-size: 14px;
  color: var(--lf-text);
}

/*-------------------------------------------------
    [ ## Inputs, textarea, date/time, file ]
*/
.lc-forms form:not(.subscribe-form > form) .form--control,
.lc-forms .car-booking-area input[type=date],
.lc-forms .car-booking-area input[type=time] {
  height: var(--lf-field-h);
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--lf-heading);
  background-color: var(--lf-surface);
  border: 1px solid var(--lf-border-strong);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lc-forms form:not(.subscribe-form > form) .form--control:hover {
  border-color: var(--lf-border-hover);
}
.lc-forms form:not(.subscribe-form > form) .form--control:focus,
.lc-forms .car-booking-area input[type=date]:focus,
.lc-forms .car-booking-area input[type=time]:focus {
  border-color: var(--lf-brand);
  background-color: var(--lf-surface);
  color: var(--lf-heading);
  box-shadow: var(--lf-shadow-xs), 0 0 0 4px var(--lf-brand-soft) !important;
  outline: none;
}
.lc-forms form:not(.subscribe-form > form) .form--control::placeholder,
.lc-forms form:not(.subscribe-form > form) textarea::placeholder {
  color: var(--lf-placeholder);
}
.lc-forms form:not(.subscribe-form > form) .form--control:disabled,
.lc-forms form:not(.subscribe-form > form) .form--control[readonly] {
  background-color: #f9fafb;
  color: var(--lf-text-muted);
  cursor: not-allowed;
}
.lc-forms form:not(.subscribe-form > form) textarea.form--control,
.lc-forms .contact-form textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.lc-forms form:not(.subscribe-form > form) input[type=date]::-webkit-calendar-picker-indicator,
.lc-forms form:not(.subscribe-form > form) input[type=time]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}
.lc-forms form:not(.subscribe-form > form) input[type=file].form--control {
  padding: 6px;
  line-height: 32px;
  color: var(--lf-text-muted);
  cursor: pointer;
}
.lc-forms form:not(.subscribe-form > form) input[type=file].form--control::file-selector-button {
  height: 32px;
  margin-right: 12px;
  padding: 0 14px;
  border: 1px solid var(--lf-border);
  border-radius: 7px;
  background: #f9fafb;
  color: var(--lf-heading);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lc-forms form:not(.subscribe-form > form) input[type=file].form--control:hover::file-selector-button {
  background: #f2f4f7;
}
.lc-forms form:not(.subscribe-form > form) .form--control.is-invalid,
.lc-forms form:not(.subscribe-form > form) .form--control.is-invalid:focus {
  border-color: #fda29b;
  box-shadow: 0 0 0 4px #fee4e2 !important;
}
.lc-forms form:not(.subscribe-form > form) .invalid-feedback {
  font-size: 13px;
}
.lc-forms input[type=checkbox],
.lc-forms input[type=radio] {
  accent-color: var(--lf-brand);
}

/*-------------------------------------------------
    [ ## Input groups & password toggles ]
*/
.lc-forms form:not(.subscribe-form > form) .input-group-text {
  height: var(--lf-field-h);
  padding: 0 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--lf-text);
  background: #f9fafb;
  border: 1px solid var(--lf-border-strong);
  border-right: none;
  border-radius: var(--lf-radius) 0 0 var(--lf-radius);
}
.lc-forms form:not(.subscribe-form > form) .input-group > .input-group-text ~ .form--control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.lc-forms form:not(.subscribe-form > form) .input-group > .form--control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.lc-forms form:not(.subscribe-form > form) .input-group > .form--control + .input-group-text {
  border-left: none;
  border-right: 1px solid var(--lf-border-strong);
  border-radius: 0 var(--lf-radius) var(--lf-radius) 0;
}

/* show / hide password eye — same position for every variant */
.lc-forms form:not(.subscribe-form > form) [class*="show_hide_password"] {
  position: relative;
}
.lc-forms form:not(.subscribe-form > form) [class*="show_hide_password"] input.form--control {
  padding-right: 44px;
}
.lc-forms form:not(.subscribe-form > form) [class*="show_hide_password"] .show-pass,
.lc-forms form:not(.subscribe-form > form) [class*="show_hide_password"] .show-pass-2 {
  position: absolute;
  top: auto !important;
  bottom: 0;
  right: calc(var(--bs-gutter-x, 1.5rem) * 0.5 + 4px);
  width: 40px;
  height: var(--lf-field-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--lf-placeholder);
  transition: color 0.15s ease;
}
.lc-forms form:not(.subscribe-form > form) [class*="show_hide_password"] .show-pass:hover,
.lc-forms form:not(.subscribe-form > form) [class*="show_hide_password"] .show-pass-2:hover {
  color: var(--lf-text);
}
/* form-groups with a bottom-margin utility: keep the eye on the field */
.lc-forms form:not(.subscribe-form > form) .form-group[class*="show_hide_password"][class*="mb-"] .show-pass {
  bottom: 0;
}

/*-------------------------------------------------
    [ ## Selects (nice-select, select2) ]
*/
.lc-forms form:not(.subscribe-form > form) .nice-select {
  height: var(--lf-field-h);
  line-height: calc(var(--lf-field-h) - 2px);
  padding: 0 38px 0 14px;
  font-size: 14.5px;
  color: var(--lf-heading) !important;
  background-color: var(--lf-surface);
  border: 1px solid var(--lf-border-strong) !important;
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow-xs);
}
.lc-forms form:not(.subscribe-form > form) .nice-select:hover {
  border-color: var(--lf-border-hover) !important;
}
.lc-forms form:not(.subscribe-form > form) .nice-select:focus,
.lc-forms form:not(.subscribe-form > form) .nice-select.open {
  border-color: var(--lf-brand) !important;
  box-shadow: var(--lf-shadow-xs), 0 0 0 4px var(--lf-brand-soft);
}
.lc-forms form:not(.subscribe-form > form) .nice-select::after {
  right: 16px;
  width: 7px;
  height: 7px;
  border-color: var(--lf-text-muted);
}
.lc-forms form:not(.subscribe-form > form) .nice-select .list {
  height: auto;
  max-height: 240px;
  margin-top: 6px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow-menu);
}
.lc-forms form:not(.subscribe-form > form) .nice-select .option {
  min-height: 38px;
  line-height: 38px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--lf-text);
}
.lc-forms form:not(.subscribe-form > form) .nice-select .option:hover,
.lc-forms form:not(.subscribe-form > form) .nice-select .option.focus,
.lc-forms form:not(.subscribe-form > form) .nice-select .option.selected.focus {
  background-color: #f9fafb;
  color: var(--lf-heading);
}
.lc-forms form:not(.subscribe-form > form) .nice-select .option.selected {
  font-weight: 600;
  color: var(--lf-brand-dark);
}
.lc-forms form:not(.subscribe-form > form) .nice-select .option.disabled {
  color: var(--lf-placeholder);
}
/* nice-select used as an input-group addon keeps the addon look */
.lc-forms form:not(.subscribe-form > form) .input-group .nice-select {
  background-color: #f9fafb !important;
  color: var(--lf-text) !important;
  box-shadow: none;
}
.lc-forms form:not(.subscribe-form > form) .input-group .nice-select::after {
  border-color: var(--lf-text-muted);
}

.lc-forms .select2-container .select2-selection--single {
  height: var(--lf-field-h) !important;
  padding: 0 38px 0 14px;
  display: flex;
  align-items: center;
  background-color: var(--lf-surface) !important;
  border: 1px solid var(--lf-border-strong) !important;
  border-radius: var(--lf-radius) !important;
  box-shadow: var(--lf-shadow-xs);
}
.lc-forms .select2-container--open .select2-selection--single,
.lc-forms .select2-container--focus .select2-selection--single {
  border-color: var(--lf-brand) !important;
  box-shadow: var(--lf-shadow-xs), 0 0 0 4px var(--lf-brand-soft);
}
.lc-forms .select2-selection--single span {
  font-weight: 400;
}
.lc-forms .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  font-size: 14.5px;
  color: var(--lf-heading) !important;
}
.lc-forms .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--lf-placeholder);
}
.lc-forms .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}
.lc-forms .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--lf-text-muted) transparent transparent transparent;
}
.lc-forms .select2-dropdown {
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  overflow: hidden;
  box-shadow: var(--lf-shadow-menu);
}
.lc-forms .select2-container--default .select2-results > .select2-results__options {
  background-color: var(--lf-surface) !important;
  padding: 4px;
}
.lc-forms .select2-results__option {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
}
.lc-forms .select2-results__option--selectable {
  color: var(--lf-text);
}
.lc-forms .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #f9fafb;
  color: var(--lf-heading);
}
.lc-forms .select2-container--default .select2-results__option--selected {
  background-color: var(--lf-brand-soft);
  color: var(--lf-brand-dark);
  font-weight: 600;
}
.lc-forms .select2-search {
  background-color: var(--lf-surface);
  padding: 8px;
}
.lc-forms .select2-container--default .select2-search--dropdown .select2-search__field {
  height: 38px;
  padding: 6px 10px;
  background-color: var(--lf-surface);
  border: 1px solid var(--lf-border-strong);
  border-radius: 8px;
  outline: none;
}

/*-------------------------------------------------
    [ ## Buttons ]
*/
.lc-forms form:not(.subscribe-form > form) .btn--base,
.lc-forms .custom-card .btn--base {
  min-height: var(--lf-field-h);
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow-xs);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.lc-forms form:not(.subscribe-form > form) .btn--base:hover,
.lc-forms .custom-card .btn--base:hover {
  background: var(--lf-brand-dark);
  color: #ffffff;
}
.lc-forms form:not(.subscribe-form > form) .btn--base:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--lf-brand-soft);
}
.lc-forms form:not(.subscribe-form > form) .btn--base.w-100 {
  margin-top: 6px;
}
.lc-forms .btn--danger {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #b42318;
  background: #ffffff;
  border: 1px solid #fda29b;
  border-radius: 9px;
  box-shadow: var(--lf-shadow-xs);
}
.lc-forms .btn--danger:hover {
  color: #ffffff;
  background: #d92d20;
  border-color: #d92d20;
}
.lc-forms .custom-card > .dashboard-header-wrapper .btn--danger {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}
/* "Forgot password?" style links inside forms */
.lc-forms form:not(.subscribe-form > form) .forgot-item a,
.lc-forms form:not(.subscribe-form > form) a.text--base {
  font-weight: 600;
  color: var(--lf-brand-dark) !important;
}

/*-------------------------------------------------
    [ ## Auth tabs (login / registration) ]
*/
.lc-forms .register-section .register-form .login-form .form-hader {
  padding: 4px;
  margin-bottom: 8px;
  background: #f2f4f7;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
}
.lc-forms .register-section .register-form .login-form .login-button,
.lc-forms .register-section .register-form .login-form .register-button {
  margin: 0;
}
.lc-forms .register-section .register-form .login-form .form-hader button {
  height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--lf-text-muted);
  background-color: transparent;
  border: none;
  border-radius: 9px;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lc-forms .register-section .register-form .login-form .form-hader button:hover {
  color: var(--lf-heading);
}
.lc-forms .register-section .register-form .login-form .form-hader button.active {
  color: var(--lf-heading);
  background-color: var(--lf-surface);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
}

/*-------------------------------------------------
    [ ## Step tabs (multi-step forms, e.g. List Your Car) ]
*/
.lc-forms .nav-tabs.car-tab-button {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: #f2f4f7;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
}
.lc-forms .nav-tabs.car-tab-button .nav-link {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--lf-text-muted);
  background: transparent;
  border: none;
  border-radius: 9px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lc-forms .nav-tabs.car-tab-button .nav-link::before {
  display: none;
}
.lc-forms .nav-tabs.car-tab-button .nav-link:hover {
  color: var(--lf-heading);
}
.lc-forms .nav-tabs.car-tab-button .nav-link.active {
  color: var(--lf-heading);
  background: var(--lf-surface);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
}
/* "Back" in step forms is a secondary action, not a destructive one */
.lc-forms .btn--danger.step-prev {
  height: var(--lf-field-h);
  padding: 0 22px;
  font-size: 15px;
  color: var(--lf-text);
  background: var(--lf-surface);
  border-color: var(--lf-border-strong);
}
.lc-forms .btn--danger.step-prev:hover {
  color: var(--lf-heading);
  background: #f9fafb;
  border-color: var(--lf-border-hover);
}

/*-------------------------------------------------
    [ ## Profile header (banner + avatar) ]
*/
.lc-forms .card-body.profile-body-wrapper {
  padding: 0;
}
.lc-forms .profile-settings-wrapper .preview-thumb.profile-wallpaper .avatar-preview,
.lc-forms .profile-settings-wrapper .preview-thumb.profile-wallpaper .avatar-preview .profilePicPreview {
  height: 120px;
}
.lc-forms .profile-settings-wrapper .preview-thumb.profile-wallpaper .avatar-preview .profilePicPreview {
  border: none;
  border-radius: 0;
  background-image:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--lf-brand) 55%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, #0c1a17 0%, color-mix(in srgb, var(--lf-brand) 30%, #0c1a17) 100%) !important;
}
.lc-forms .profile-thumb-content {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0 24px 4px;
}
.lc-forms .profile-thumb-content .profile-thumb {
  margin: -48px 0 0;
  flex-shrink: 0;
}
.lc-forms .profile-thumb-content .profile-thumb .avatar-preview,
.lc-forms .profile-thumb-content .profile-thumb .avatar-preview .profilePicPreview {
  width: 96px;
  height: 96px;
}
.lc-forms .profile-thumb-content .profile-thumb .avatar-preview .profilePicPreview {
  border: 4px solid var(--lf-surface);
  box-shadow: var(--lf-shadow-md);
  background-position: center;
}
.lc-forms .profile-thumb-content .profile-thumb .avatar-edit label {
  width: 30px;
  height: 30px;
  font-size: 15px;
  border: 2px solid var(--lf-surface);
  box-shadow: var(--lf-shadow-xs);
}
.lc-forms .profile-thumb-content .profile-content {
  padding: 0 0 6px;
}
.lc-forms .profile-thumb-content .profile-content .username {
  font-size: 17px;
  font-weight: 700;
  color: var(--lf-heading) !important;
  margin-bottom: 2px;
}
.lc-forms .profile-thumb-content .profile-content .user-info-list li {
  font-size: 13.5px;
  color: var(--lf-text-muted);
  gap: 6px;
}
.lc-forms .profile-form-area {
  padding: 24px;
  margin-top: 16px;
  border-top: 1px solid var(--lf-border);
}
@media only screen and (max-width: 575px) {
  .lc-forms .profile-thumb-content {
    padding: 0 18px 4px;
  }
  .lc-forms .profile-form-area {
    padding: 18px;
  }
}
