/* Extra styles for the LTOA transporter/join form.
   Reuses Bootstrap 5 + ltoa.in style.css. */
:root {
   --ltoa-orange: #f26522;
   --ltoa-navy: #0b2a5b;
}

.join-form {
   background: #fff;
}

.form-card {
   background: #fff;
   border: 1px solid #e9ecef;
   border-radius: 12px;
   padding: 24px 24px 15px;
   margin-bottom: 24px;
   box-shadow: 0 6px 20px rgba(11, 42, 91, .05);
}

.form-card h4 {
   color: var(--ltoa-navy);
   font-weight: 700;
   font-size: 1.15rem;
   margin: 0 0 4px;
   display: flex;
   align-items: center;
   gap: 10px;
}

.form-card h4 .num {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 30px;
   height: 30px;
   border-radius: 50%;
   background: var(--ltoa-orange);
   color: #fff;
   font-size: .85rem;
   font-weight: 700;
}

.form-card .card-hint {
   color: #6c757d;
   font-size: .875rem;
   margin: 0 0 18px 40px;
}

.join-form label.form-label {
   font-weight: 500;
   color: #24344d;
   font-size: .9rem;
   margin-bottom: 4px;
}

.join-form .required::after {
   content: " *";
   color: var(--ltoa-orange);
}

.join-form .form-control,
.join-form .form-select {
   border-radius: 10px;
   padding: 12px 14px;
   border: 1px solid #dbe1ea;
   background: #f8fafc;
   font-size: .95rem;
}

.join-form .form-control:focus,
.join-form .form-select:focus {
   border-color: var(--ltoa-orange);
   box-shadow: 0 0 0 3px rgba(242, 101, 34, .15);
   background: #fff;
}

.join-form .form-check-label {
   font-size: .92rem;
}

.join-form .form-check-input:checked {
   background-color: var(--ltoa-orange);
   border-color: var(--ltoa-orange);
}

.repeat-row {
   background: #f8fafc;
   border: 1px dashed #d6dce6;
   border-radius: 10px;
   padding: 16px;
   margin-bottom: 12px;
   position: relative;
}

.remove-btn {
   background: transparent;
   border: 0;
   color: #b02a37;
   font-size: 1.1rem;
   line-height: 1;
   text-align: right;
}

.repeat-row .remove-btn {
   position: absolute;
   top: 8px;
   right: 8px;
}

.btn-add {
   background: transparent;
   color: var(--ltoa-orange);
   border: 1px dashed var(--ltoa-orange);
   border-radius: 10px;
   padding: 10px 18px;
   font-weight: 600;
   font-size: .9rem;
   transition: all .2s;
}

.btn-add:hover {
   background: var(--ltoa-orange);
   color: #fff;
}

.file-drop {
   border: 2px dashed #d6dce6;
   border-radius: 10px;
   padding: 22px;
   text-align: center;
   background: #f8fafc;
   color: #6c757d;
   font-size: .9rem;
   cursor: pointer;
}

.file-drop i {
   color: var(--ltoa-orange);
   font-size: 1.6rem;
}

.file-drop:hover {
   border-color: var(--ltoa-orange);
   background: #fff;
}

.file-name {
   font-size: .85rem;
   color: var(--ltoa-navy);
   margin-top: 6px;
}

.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
   gap: 10px;
}

.services-grid .form-check {
   background: #f8fafc;
   border: 1px solid #e9ecef;
   border-radius: 8px;
   padding: 10px 12px 10px 38px;
}

.form-actions {
   display: flex;
   gap: 12px;
   flex-wrap: wrap;
   margin-top: 8px;
}

.form-actions .btn-submit {
   min-width: 200px;
}

.btn-reset {
   background: transparent;
   border: 1px solid #dbe1ea;
   color: #24344d;
   border-radius: 30px;
   padding: 12px 28px;
   font-weight: 600;
}

.btn-reset:hover {
   background-color: #24344d;
   color: #ffffff;
}

.alert-success-ltoa {
   background: #e8f7ee;
   color: #146c43;
   border: 1px solid #b6ecc6;
   border-radius: 10px;
   padding: 14px 18px;
   display: none;
}

.gs_radio .knobs,
.gs_radio .layer {
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0
}

.gs_radio .button {
   position: relative;
   width: 130px;
   height: 40px;
   margin: 10px 0 0;
   overflow: hidden;
   padding: 4px;
   border-radius: 2px;
}

.gs_radio .checkbox {
   position: relative;
   width: 100%;
   height: 100%;
   padding: 0;
   margin: 0 !important;
   opacity: 0;
   cursor: pointer;
   z-index: 3
}

.gs_radio .knobs {
   z-index: 2
}

.gs_radio .layer {
   width: 100%;
   background-color: #e7000017;
   transition: .3s;
   z-index: 1
}

.gs_radio .button .knobs span,
.gs_radio .button .knobs:after,
.gs_radio .button .knobs:before {
   position: absolute;
   top: 4px;
   width: 60px;
   height: calc(40px - 8px);
   font-size: 14px;
   font-weight: 500;
   text-align: center;
   line-height: 1;
   border-radius: 2px;
   transition: .3s;
   display: flex;
   align-items: center;
   justify-content: center;
}

.gs_radio .button .knobs:before {
   content: "";
   left: 64px;
   background-color: #bf0000;
}

.gs_radio .button .knobs:after {
   content: "Both  ⟷";
   right: 4px;
   color: #fff;
}

.gs_radio .button .knobs span {
   display: inline-flex;
   left: 4px;
   color: #4e4e4e;
   z-index: 1;
}

.gs_radio .button .checkbox:checked+.knobs:before {
   left: 4px;
   background-color: #006417
}

.gs_radio .button .checkbox:checked+.knobs:after {
   color: #4e4e4e
}

.gs_radio .button .checkbox:checked~.layer {
   background-color: #00c72e21
}

.gs_radio .button .checkbox:checked+.knobs span {
   color: #fff;
}

.photo-upload {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   border: 2px dashed #d6dce6;
   border-radius: 10px;
   background: #f8fafc;
   cursor: pointer;
   transition: .3s;
   padding: 0 14px;
   color: #6c757d;
   font-size: .95rem;
}

.photo-upload:hover {
   border-color: var(--ltoa-orange);
   background: #fff;
}

.photo-upload i {
   color: var(--ltoa-orange);
   font-size: 28px;
}

#ownerPhotoName {
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

@media (max-width:576px) {
   .form-card {
      padding: 18px 16px 4px;
   }

   .form-card h4 {
      font-size: 1rem;
   }

   .form-card .card-hint {
      margin-left: 40px;
   }
}
/* ── Validation Styles ─────────────────────────────────────────────────── */
/* Remove Bootstrap green checkmarks and green borders on form controls */
.join-form .form-control.is-valid,
.join-form .was-validated .form-control:valid,
.join-form .form-select.is-valid,
.join-form .was-validated .form-select:valid,
.join-form .form-control:valid,
.join-form .form-select:valid {
    border-color: #dbe1ea;
    background-image: none !important;
}

.join-form .form-control:focus,
.join-form .form-select:focus {
    border-color: var(--ltoa-orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, .15);
}

/* Invalid Field Styling: Red Border & Exclamation Icon */
.join-form .input-validation-error,
.join-form .form-control.input-validation-error,
.join-form .form-select.input-validation-error,
.join-form .form-control.is-invalid,
.join-form .form-select.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem 1rem !important;
    padding-right: 2.5rem !important;
}

/* Validation error text under input */
.join-form .field-validation-error,
.join-form span.text-danger {
    display: block;
    color: #dc3545 !important;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 4px;
}

.validation-summary-errors {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
    border-radius: 8px;
    padding: 12px 18px;
    color: #dc3545;
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: 600;
}

