/* =============================================
   TUKSY AUTOCENTRE — Custom Plugin Styles
   ============================================= */

:root {
  --tuksy-gold: #F5A623;
  --tuksy-dark: #1a1a1a;
  --tuksy-card: #242424;
  --tuksy-border: #333;
  --tuksy-text: #ffffff;
  --tuksy-muted: #aaaaaa;
  --tuksy-radius: 6px;
}

/* Wrap */
.tuksy-form-wrap {
  background: var(--tuksy-dark);
  border-radius: 10px;
  padding: 36px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header */
.tuksy-form-header h2,
.tuksy-form-header h3 {
  color: var(--tuksy-text);
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.tuksy-form-header p {
  color: var(--tuksy-muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.tuksy-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tuksy-form-header h3 {
  font-size: 18px;
  color: var(--tuksy-gold);
  margin: 0;
  text-transform: uppercase;
}

/* Rows & Fields */
.tuksy-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tuksy-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.tuksy-field.tuksy-full {
  flex: 0 0 100%;
  width: 100%;
}
.tuksy-field label {
  color: var(--tuksy-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.tuksy-field label span,
.tuksy-field label .req {
  color: var(--tuksy-gold);
}
.tuksy-field input,
.tuksy-field select,
.tuksy-field textarea {
  background: #2e2e2e;
  border: 1px solid var(--tuksy-border);
  border-radius: var(--tuksy-radius);
  color: var(--tuksy-text);
  font-size: 14px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
  outline: none;
  font-family: inherit;
}
.tuksy-field input:focus,
.tuksy-field select:focus,
.tuksy-field textarea:focus {
  border-color: var(--tuksy-gold);
}
.tuksy-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F5A623' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.tuksy-field select option {
  background: var(--tuksy-dark);
}
.tuksy-field textarea {
  resize: vertical;
  min-height: 130px;
}
.tuksy-field input::placeholder,
.tuksy-field textarea::placeholder {
  color: #555;
}

/* Button */
.tuksy-btn {
  background: var(--tuksy-gold);
  color: #1a1a1a;
  border: none;
  border-radius: var(--tuksy-radius);
  padding: 13px 32px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: inline-block;
}
.tuksy-btn:hover { background: #e09a1a; transform: translateY(-1px); }
.tuksy-btn:active { transform: translateY(0); }
.tuksy-btn-full { width: 100%; text-align: center; }
.tuksy-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Disclaimer */
.tuksy-disclaimer {
  color: #666;
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}

/* Form footer */
.tuksy-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Response message */
.tuksy-response {
  margin-top: 14px;
  font-size: 14px;
  border-radius: var(--tuksy-radius);
  padding: 0;
  display: none;
}
.tuksy-response.success {
  display: block;
  background: rgba(34,197,94,.12);
  border: 1px solid #22c55e;
  color: #22c55e;
  padding: 12px 16px;
}
.tuksy-response.error {
  display: block;
  background: rgba(239,68,68,.12);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 12px 16px;
}

/* =============================================
   LISTING FORM — two column layout
   ============================================= */
.tuksy-two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: start;
}
.tuksy-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tuksy-info-section {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tuksy-info-section strong {
  color: var(--tuksy-gold);
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.tuksy-info-section p {
  color: var(--tuksy-muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}
.tuksy-info-icon {
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tuksy-gold);
}
.tuksy-info-icon.small {
  width: 32px;
  height: 32px;
}
.tuksy-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tuksy-muted);
  font-size: 13px;
}
.tuksy-listing-form-side .tuksy-field {
  margin-bottom: 14px;
}

/* =============================================
   SERVICE FORM
   ============================================= */
.tuksy-service-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.tuksy-service-wrap h2 {
  color: var(--tuksy-text);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 24px;
  letter-spacing: .05em;
}
.tuksy-service-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--tuksy-border);
  flex-wrap: wrap;
}
.tuksy-hours-box {
  background: var(--tuksy-card);
  border: 1px solid var(--tuksy-border);
  border-radius: 8px;
  padding: 20px;
}
.tuksy-hours-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tuksy-hours-header strong {
  color: var(--tuksy-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.tuksy-hours-list { display: flex; flex-direction: column; gap: 2px; }
.tuksy-hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--tuksy-border);
  font-size: 13px;
  color: var(--tuksy-muted);
}
.tuksy-hours-row:last-child { border-bottom: none; }
.tuksy-hours-row .closed { color: #666; }
.tuksy-hours-row span:first-child { color: var(--tuksy-text); font-weight: 600; }

/* =============================================
   AUTH FORM — Login / Register tabs
   ============================================= */
.tuksy-auth-wrap {
  max-width: 520px;
}
.tuksy-auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--tuksy-border);
  margin-bottom: 28px;
}
.tuksy-tab {
  background: none;
  border: none;
  color: var(--tuksy-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.tuksy-tab.active,
.tuksy-tab:hover {
  color: var(--tuksy-gold);
  border-bottom-color: var(--tuksy-gold);
}
.tuksy-tab-panel { display: none; }
.tuksy-tab-panel.active { display: block; }
.tuksy-tab-panel h2 {
  color: var(--tuksy-text);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
}
.tuksy-auth-sub {
  color: var(--tuksy-muted);
  font-size: 13px;
  margin: 0 0 22px;
}
.tuksy-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.tuksy-password-wrap input { padding-right: 42px; }
.tuksy-toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.tuksy-toggle-pass:hover { color: var(--tuksy-gold); }
.tuksy-remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.tuksy-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--tuksy-muted);
  font-size: 13px;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.tuksy-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--tuksy-gold);
  cursor: pointer;
}
.tuksy-checkbox-label a {
  color: var(--tuksy-gold);
  text-decoration: none;
}
.tuksy-forgot {
  color: var(--tuksy-gold);
  font-size: 13px;
  text-decoration: none;
}
.tuksy-forgot:hover { text-decoration: underline; }
.tuksy-switch-text {
  text-align: center;
  color: var(--tuksy-muted);
  font-size: 13px;
  margin-top: 16px;
}
.tuksy-switch-tab {
  color: var(--tuksy-gold);
  text-decoration: none;
  font-weight: 600;
}
.tuksy-logged-in {
  text-align: center;
  padding: 40px 20px;
}
.tuksy-logged-in h3 {
  color: var(--tuksy-text);
  font-size: 20px;
  margin: 16px 0 8px;
}
.tuksy-logged-in p {
  color: var(--tuksy-muted);
  margin: 0 0 24px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .tuksy-form-wrap { padding: 20px; }
  .tuksy-two-col   { grid-template-columns: 1fr; }
  .tuksy-service-layout { grid-template-columns: 1fr; }
  .tuksy-row       { flex-direction: column; }
  .tuksy-form-footer { flex-direction: column; align-items: flex-start; }
  .tuksy-service-submit-row { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   PROFESSIONAL CONTACT FORM VISIBILITY UPGRADE
   ============================================= */
.tuksy-form-wrap {
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.tuksy-form-header {
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.tuksy-form-header h2 {
  letter-spacing: .02em;
  line-height: 1.05;
}
.tuksy-form-header p {
  color: #ffffff !important;
  opacity: .92;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 20px;
}
.tuksy-field label {
  color: #e5e7eb !important;
}
.tuksy-field input,
.tuksy-field select,
.tuksy-field textarea {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}
.tuksy-field textarea {
  background: #ffffff !important;
}
.tuksy-field input::placeholder,
.tuksy-field textarea::placeholder {
  color: #4b5563 !important;
  opacity: 1;
}
.tuksy-field select:invalid,
.tuksy-field select option[value=""] {
  color: #6b7280 !important;
}
.tuksy-disclaimer {
  color: #ffffff !important;
  opacity: .92;
  font-size: 12.5px;
  max-width: 560px;
}
.tuksy-response.success,
.tuksy-response.error {
  color: #ffffff !important;
}

/* Access / login protection UI */
.tuksy-response.error a,
.tuksy-login-required a {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Force Select2 dropdown/readable text */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-dropdown,
.select2-container--default .select2-results__option,
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection__placeholder {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #f5a623 !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}
