/* ============================= */
/* CONTAINER                     */
/* Scoped to avoid conflicting   */
/* with login page .container    */
/* ============================= */
.page-exhibitor-form .container {
  display: block;
  height: auto;
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ============================= */
/* TITLE                         */
/* ============================= */
.page-exhibitor-form h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #1a2b4b;
}

/* ============================= */
/* INPUTS                        */
/* ============================= */
.page-exhibitor-form input[type="text"],
.page-exhibitor-form input[type="email"],
.page-exhibitor-form input[type="password"],
.page-exhibitor-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

/* suppress browser autofill highlight */
.page-exhibitor-form input:-webkit-autofill,
.page-exhibitor-form input:-webkit-autofill:hover,
.page-exhibitor-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  -webkit-text-fill-color: #1a2b4b;
  border: 1px solid #d0d7e2;
  transition: background-color 5000s ease-in-out 0s;
}

.page-exhibitor-form input::placeholder,
.page-exhibitor-form textarea::placeholder {
  color: #9aa4b2;
}

.page-exhibitor-form textarea {
  resize: vertical;
  min-height: 140px;
  margin-bottom: 32px;
}

.field {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #344563;
}

/* ============================= */
/* WAIT / STATUS MESSAGE         */
/* ============================= */
.wait {
  background: #d4edda;
  color: #155724;
}

/* ============================= */
/* CATEGORY TOOLBAR              */
/* ============================= */
.page-exhibitor-form .tags-head h2 {
  color: #1a2b4b;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

/* ============================= */
/* CATEGORY TABS                 */
/* ============================= */
.category-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.category-tab {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #e1e9f6;
  background: #f8faff;
  color: #1a2b4b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.category-tab:hover {
  background: #eef2ff;
  transform: translateY(-1px);
}

.category-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

/* ============================= */
/* TAG SEARCH                    */
/* ============================= */
.tag-search {
  flex: 1;
  max-width: 100%;
}

.tag-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag-search input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* ============================= */
/* CATEGORY ACCORDION BODY       */
/* ============================= */
#categoryAccordion {
  display: block;
  margin-bottom: 40px;
}

/* ============================= */
/* SUBCATEGORY ACCORDION         */
/* ============================= */
.subcategory-accordion {
  border: 1px dashed #d0d7e2;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.subcategory-header {
  padding: 14px 16px;
  font-weight: 600;
  background: #f8faff;
  cursor: pointer;
  user-select: none;
}

.subcategory-header::after {
  content: "▾";
  float: right;
  transition: transform 0.2s ease;
}

.subcategory-accordion.open > .subcategory-header::after {
  transform: rotate(180deg);
}

/* ============================= */
/* SUBCATEGORY BODY              */
/* ============================= */
.subcategory-body {
  display: none;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.subcategory-accordion.open > .subcategory-body {
  display: flex;
}

/* ============================= */
/* TAG ITEMS                     */
/* ============================= */
.tag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  background: #f8faff;
  transition: background 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

.tag-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none;
  flex-shrink: 0;
}

.tag-item.match {
  background: #eef2ff;
  font-weight: 600;
}

.tag-item.dim {
  opacity: 0.35;
}

.tag-item.selected {
  background: #dbeafe;
  border-color: #667eea;
  font-weight: 700;
}

/* ============================= */
/* TAG COUNTER                   */
/* ============================= */
.tag-counter {
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  margin-top: 4px;
}

/* ============================= */
/* SUBMIT BUTTON                 */
/* ============================= */
.submit-btn {
  position: relative;
  width: 60%;
  max-width: 420px;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 16px;
}

/* ============================= */
/* ACCESSIBILITY                 */
/* ============================= */
.category-tab:focus,
.subcategory-header:focus,
.tag-search input:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ============================= */
/* COMPANY DETAILS HEADING       */
/* ============================= */
.page-exhibitor-form .company-details-heading {
  font-size: 16px;
  font-weight: 700;
  color: #344563;
  text-align: left;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* ============================= */
/* PASSWORD WRAPPER              */
/* ============================= */
.pwd-wrapper {
  position: relative;
}

.pwd-wrapper input[type="password"],
.pwd-wrapper input[type="text"] {
  padding-right: 46px;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwd-toggle:hover {
  color: #344563;
}

.pwd-toggle i {
  pointer-events: none;
}

/* ============================= */
/* COMPANY DETAILS GRID          */
/* ============================= */
.company-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}

.company-details-grid .field textarea {
  margin-bottom: 0;
}

.field-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 5px;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ============================= */
/* TEAM MEMBERS SECTION          */
/* ============================= */
.section-title {
  margin-top: 40px;
  margin-bottom: 6px;
  font-size: 20px;
  color: #1a2b4b;
}

.section-subtitle {
  margin-bottom: 24px;
  font-size: 14px;
  color: #6b7280;
}

#teamMembersContainer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.team-member {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
}

.team-member .field {
  margin-bottom: 0;
}

.remove-member {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  background: #fee2e2;
  color: #b91c1c;
  transition: background 0.2s ease;
}

.remove-member:not(:disabled):hover {
  background: #fecaca;
}

.remove-member1 {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  background: #fee2e2;
  color: #b91c1c;
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================= */
/* ADD MEMBER BUTTON             */
/* ============================= */
.add-member-btn {
  margin-bottom: 36px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px dashed #667eea;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-member-btn:hover {
  background: #e0e7ff;
}

/* ============================= */
/* SELECT DROPDOWN               */
/* ============================= */
.page-exhibitor-form .form-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
  font-size: 14px;
  color: #1a2b4b;
  background: #fff 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='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.page-exhibitor-form .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* ============================= */
/* FILE INPUT                    */
/* ============================= */
.form-file-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-file-wrap input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  background: #f8faff;
  font-size: 14px;
  color: #1a2b4b;
  cursor: pointer;
  box-sizing: border-box;
}

.form-file-wrap input[type="file"]::-webkit-file-upload-button {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  background: #fff;
  font-size: 13px;
  color: #344563;
  cursor: pointer;
  margin-right: 10px;
}

.logo-preview {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #d0d7e2;
  background: #f8faff;
  padding: 4px;
}

/* ============================= */
/* FORM SECTION ROW              */
/* heading LEFT / fields RIGHT   */
/* ============================= */
.form-section-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid #f0f4f8;
}

.form-section-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a2b4b;
  padding-top: 10px;
}

.form-section-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-section-fields textarea {
  min-height: 100px;
  margin-bottom: 0;
}

/* ============================= */
/* MOBILE                        */
/* ============================= */
@media (max-width: 768px) {
  .page-exhibitor-form .container {
    padding: 28px 20px;
  }

  .company-details-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    grid-template-columns: 1fr;
  }

  .remove-member,
  .remove-member1 {
    width: 100%;
    border-radius: 10px;
  }

  .category-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tag-search {
    max-width: 100%;
  }

  .submit-btn {
    width: 100%;
  }

  .form-section-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-section-label {
    padding-top: 0;
  }

  .form-section-fields {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .category-tab {
    width: 180px;
  }
}
