.commission-request-form {
  display: grid;
  column-gap: var(--minim);
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "types" "details";
  row-gap: var(--semibreve);
  margin-top: var(--semibreve);
}

@media (min-width: 640px) {
  .commission-request-form {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "details types";
  }
}

.commission-types-container {
  grid-area: types;
}

.commission-details-container {
  grid-area: details;
  display: flex;
  flex-direction: column;
  gap: var(--minim);
}


.select-field {
  padding: 12px 16px;
  font-size: 16px;
  min-width: 220px;
  border: 1px solid var(--grey-400);
  border-radius: 8px;
  background-color: var(--white);
  box-sizing: border-box;
}

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

.select-group {
  display: flex;
  gap: 0.75em;
  align-items: center;
  flex-wrap: wrap;
}

.selected-time-preview {
  margin-top: 10px;
  font-size: 15px;
}

/* Schedule call page background */
.schedule-call-page {
  background-color: var(--grey-100);
  border-radius: 5px;
  padding: 16px 24px !important;
  position: relative;
  height: 60vh;
  min-height: 60vh !important;
  width: 100%;
  box-sizing: border-box;
}

.schedule-call-heading {
  font-size: 16px;
  font-weight: 540;
  color: var(--mb);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.schedule-call-back-link {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mb-70);
  text-decoration: none;
  transition: color 0.2s ease;
}

.schedule-call-back-link:hover {
  color: var(--fg);
}

.schedule-call-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dc-greys-900);
  margin: 0;
  letter-spacing: 0.02em;
  margin-bottom: 31px;
}


.schedule-call-sub-title {
  font-size: 14px;
  font-style: normal;
  font-weight: 540;
  line-height: 20px; /* 142.857% */
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--dc-greys-900);
}

/* Schedule call preview wrapper - positioned above button container */
.schedule-call-preview-wrapper {
  position: absolute;
  bottom: 80px;
  /* 24px (button container bottom) + 31px (button height) + 25px (gap) */
  right: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--dc-greys-900);
  text-align: right;
  line-height: 1.5;
}

.schedule-call-preview-wrapper strong {
  font-weight: 500;
  color: var(--mb);
}

.schedule-call-button-container {
  font-size: 12px;
  position: absolute;
  bottom: 24px;
  right: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.schedule-call-button-container form {
  margin: 0;
  padding: 0;
}

.schedule-call-button-container form.button_to {
  display: contents;
}

/* Disabled state for schedule call button when form is incomplete */
.schedule-call-button-container .button.schedule-call-button.disabled {
  background-color: var(--mb-70) !important;
  border-color: var(--mb-70) !important;
  color: var(--shw) !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.schedule-call-button-container .button.schedule-call-button.disabled:hover,
.schedule-call-button-container .button.schedule-call-button.disabled:active {
  background-color: var(--mb-70) !important;
  border-color: var(--mb-70) !important;
}

/* Schedule selector styles */
.schedule-selector-row {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.schedule-selector-item {
  position: relative;
}

.schedule-selector-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dc-greys-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 8px 30px 8px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctext x='2' y='16' font-size='18' font-weight='600' fill='%239ca3af'%3E›%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 20px 20px;
  outline: none;
}

.schedule-selector-dropdown:hover {
  color: var(--dc-greys-900);
}

.schedule-selector-dropdown:focus {
  color: var(--dc-greys-900);
  outline: none;
}

/* Scheduled Call Info Styles */
.scheduled-call-info {
  margin-bottom: 24px;
}

.scheduled-call-details {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.scheduled-call-icon {
  width: 30px;
  height: 28.33px;
  flex-shrink: 0;
}

.scheduled-call-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scheduled-call-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--dc-greys-900);
  margin: 0;
}

.scheduled-call-datetime {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--mb);
  margin: 0;
}

.scheduled-call-reminder {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--dc-greys-900);
  margin: 0;
  line-height: 1.5;
}

.scheduled-call-reminder strong {
  font-weight: 600;
}

/* Legacy Scheduled Call Card Styles (can be removed if unused) */
.scheduled-call-card {
  background-color: var(--white);
  border-radius: 5px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--grey-200);
  width: 100%;
  box-sizing: border-box;
}

.schedule-call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.schedule-call-header.mb {
  margin-bottom: 16px;
}

.scheduled-call-card h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--mb-70);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 16px;
}

.scheduled-call-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scheduled-call-card li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scheduled-call-card li p {
  margin: 0;
  font-family: var(--font-sans);
}

.scheduled-call-card li p:first-child {
  font-size: 12px;
  color: var(--mb-70);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.scheduled-call-card li p:last-child {
  font-size: 16px;
  color: var(--dc-greys-900);
  font-weight: 500;
}

.cancel-request-button {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--mb-70);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.cancel-request-button:hover {
  color: var(--status-red);
}

/* When an option is selected, show the selected value in a different style */
.schedule-selector-dropdown option {
  background: white;
  color: #1f2937;
  font-size: 14px;
  padding: 8px;
  text-transform: none;
  letter-spacing: normal;
}

.schedule-selector-dropdown option:first-child {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-600, #6b7280);
}

/* Custom Select Dropdown Component */
.custom-select {
  position: relative;
  display: inline-block;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dc-greys-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus {
  color: var(--mb);
  outline: none;
}

.custom-select-trigger[aria-expanded="true"] {
  color: var(--mb);
}

.custom-select-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.custom-select-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 120px;
  max-height: 0;
  overflow: hidden;
  background-color: var(--dc-greys-100);
  border: 1px solid var(--mb-70);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-select-menu.open {
  max-height: 240px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
}

/* Custom scrollbar for the dropdown */
.custom-select-menu::-webkit-scrollbar {
  width: 6px;
}

.custom-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  background: var(--grey-600);
  border-radius: 3px;
}

.custom-select-menu::-webkit-scrollbar-thumb:hover {
  background: var(--grey-700);
}

.custom-select-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--dc-greys-900);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.custom-select-option:hover,
.custom-select-option:focus {
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-select-option.selected {
  color: var(--mb);
  font-weight: 600;
}

.custom-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}