/* Figma-based UI Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* Design tokens from Figma */
:root {
  /* Colors */
  --figma-primary: #8B5CF6; /* Violet 500 */
  --figma-primary-hover: #7C3AED; /* Violet 600 */
  --figma-text: #474747;
  --figma-text-muted: #8F8F8F;
  --figma-border: #E9E9E9;
  --figma-background: #FFFFFF;
  --figma-background-page: #F5F5F5;
  --figma-success: #A6CE39;
  --figma-error: #EF4444;
  
  /* Shadows */
  --figma-shadow: 10px 10px 30px 10px rgba(0, 0, 0, 0.03);
  --figma-shadow-hover: 10px 10px 30px 10px rgba(0, 0, 0, 0.1);
  
  /* Radius */
  --figma-radius-button: 100px;
  --figma-radius-card: 20px;
  --figma-radius-input: 100px;
  --figma-radius-small: 10px;
}

/* Figma Input Styling */
.figma-input {
  height: 44px;
  padding: 0 15px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #212121;
  background-color: #FFFFFF;
  border: 1px solid #E9E9E9;
  border-radius: 100px;
  transition: all 0.2s ease;
  outline: none;
}

/* Textarea specific styling */
textarea.figma-input {
  height: auto;
  padding: 12px 20px;
  border-radius: 20px;
  line-height: 1.5;
  resize: vertical;
}

.figma-input::placeholder {
  color: #8F8F8F;
}

.figma-input:focus {
  border-color: #A6CE39;
}

.figma-input:hover:not(:focus):not(:disabled) {
  border-color: #D2D2D2;
}

/* Disabled state */
.figma-input:disabled {
  background-color: #F5F5F5;
  color: #BFBFBF;
  cursor: not-allowed;
}

.figma-input:disabled::placeholder {
  color: #BFBFBF;
}

/* Figma Select/Dropdown */
.figma-select {
  height: 44px;
  padding: 0 48px 0 15px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #8F8F8F;
  background-color: #FFFFFF;
  border: 1px solid #E9E9E9;
  border-radius: 100px;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 9L12 14L17 9' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 24px;
  cursor: pointer;
  outline: none;
}

.figma-select:focus {
  border-color: #A6CE39;
}

/* Figma Button */
.figma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 40px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.32px;
  border: none;
  border-radius: var(--figma-radius-button);
  cursor: pointer;
  transition: all 0.2s ease;
}

.figma-btn.figma-btn-primary {
  color: #FFFFFF;
  padding: 0 30px;
  background-color: var(--figma-primary);
}

.figma-btn.figma-btn-primary:hover {
  background-color: var(--figma-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.figma-btn.figma-btn-primary:active {
  transform: translateY(0);
}

.figma-btn.figma-btn-secondary {
  height: 44px;
  padding: 0 20px;
  color: #212121;
  background-color: #FFFFFF;
  border: 1px solid #E9E9E9;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.04);
}

.figma-btn.figma-btn-secondary:hover {
  background-color: #F5F5F5;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
}

.figma-btn.figma-btn-sm {
  height: 36px;
  padding: 0 20px;
  font-size: 12px;
}

.figma-btn svg, .figma-btn img {
  width: 20px;
  height: 20px;
}

/* Figma Card */
.figma-card {
  background-color: var(--figma-background);
  border: 1px solid var(--figma-border);
  border-radius: var(--figma-radius-card);
  box-shadow: var(--figma-shadow);
  overflow: hidden;
  transition: all 0.2s ease;
}

.figma-card:hover {
  box-shadow: var(--figma-shadow-hover);
}

.figma-card .figma-card-body {
  padding: 40px;
}

.figma-card .figma-card-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--figma-border);
  font-family: 'TT_Travels_Medium', sans-serif;
  font-size: 18px;
  letter-spacing: -0.54px;
  color: var(--figma-text);
}

.figma-card .figma-card-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--figma-border);
}

/* Figma Form Group (for inputs with labels) */
.figma-form-group {
  margin-bottom: 24px;
}

.figma-form-group .figma-label {
  display: block;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  color: #929292;
}

.figma-form-group .figma-help-text {
  display: block;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  color: #929292;
}


/* Figma Badge */
.figma-badge {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.2px;
  border-radius: var(--figma-radius-button);
}

.figma-badge.figma-badge-dark {
  color: #FFFFFF;
  background-color: var(--figma-text);
}

.figma-badge.figma-badge-primary {
  color: #FFFFFF;
  background-color: var(--figma-primary);
}

.figma-badge .figma-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-right: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 10px;
}

/* Figma Priority indicators */
.figma-priority {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: -0.28px;
}

.figma-priority.figma-priority-high {
  color: var(--figma-primary);
}

.figma-priority.figma-priority-medium {
  background: linear-gradient(96.88deg, #8B5CF6 0.29%, #A6CE39 108.34%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.figma-priority.figma-priority-low {
  color: var(--figma-success);
}

/* Figma layout helpers */
.figma-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--figma-background-page);
}

.figma-sidebar {
  width: 380px;
  background-color: var(--figma-background);
  border: 1px solid var(--figma-border);
  border-radius: var(--figma-radius-card);
  box-shadow: var(--figma-shadow);
}

/* Figma grid for cards */
.figma-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
  gap: 20px;
}

input[type="radio"]:checked {
  background-color: #A6CE39;
}

input[type="checkbox"]:checked {
  background-color: #A6CE39;
}

/* Hide default date input calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button {
  display: none;
  -webkit-appearance: none;
}

/* For Firefox */
input[type="date"] {
  -moz-appearance: textfield;
}

/* Figma validation feedback */
.figma-input.border-green-300 {
  border-color: var(--figma-success);
}

.figma-input.border-red-300 {
  border-color: var(--figma-error);
}

.figma-input.focus\:border-green-500:focus {
  border-color: var(--figma-success);
}

.figma-input.focus\:border-red-500:focus {
  border-color: var(--figma-error);
}

/* Figma-specific Choices.js styling */
.figma-choices .choices__inner {
  min-height: 44px;
  padding: 0 15px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #212121;
  background-color: #FFFFFF;
  border: 1px solid #E9E9E9;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.figma-choices.is-focused .choices__inner {
  border-color: #A6CE39;
}

.figma-choices .choices__list--multiple {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}

.figma-choices .choices__list--multiple .choices__item {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  padding-right: 4px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #FFFFFF;
  background-color: #8B5CF6;
  border: none;
  border-radius: 100px;
  position: relative;
}

.figma-choices .choices__list--multiple .choices__item.is-highlighted {
  background-color: #7C3AED;
}

.figma-choices .choices__list--multiple .choices__item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.2) !important;
  background-image: none !important;
  border: none;
  border-radius: 50%;
  opacity: 0.8;
  color: #FFFFFF;
  font-size: 0;
  line-height: 1;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
}

.figma-choices .choices__list--multiple .choices__item button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Override the background image for the remove button */
.figma-choices .choices__list--multiple .choices__item button::after {
  content: '×';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: normal;
  color: #FFFFFF;
  text-indent: 0;
}

.figma-choices .choices__input {
  padding: 0;
  margin: 0;
  min-height: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #212121;
  background: none;
  border: none;
}

.figma-choices .choices__placeholder {
  color: #8F8F8F;
  opacity: 1;
}

/* Dropdown styling */
.figma-choices .choices__list--dropdown {
  margin-top: 8px;
  background-color: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.12);
}

.figma-choices .choices__list--dropdown .choices__item {
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #212121;
}

.figma-choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #F5F5F5;
}

/* Height variants for figma-choices */
.figma-choices-h-16 .choices__inner {
  min-height: 64px;
  padding: 0 24px;
  border-radius: 100px;
}

/* Appointment Scheduling Styles */
.appointment-time-slot {
  cursor: pointer;
  background-color: white;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.appointment-time-slot:hover {
  border-color: #8B5CF6;
}

.appointment-time-slot.selected {
  background-color: #8B5CF6;
  border-color: transparent;
}

.appointment-time-slot .time-slot-time {
  font-family: 'TT_Travels_Medium', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #8B5CF6;
  white-space: nowrap;
}

.appointment-time-slot.selected .time-slot-time {
  color: white;
}

.appointment-time-slot .time-slot-day,
.appointment-time-slot .time-slot-date {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #666666;
  line-height: 1.2;
}

.appointment-time-slot.selected .time-slot-day,
.appointment-time-slot.selected .time-slot-date {
  color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .appointment-time-slot {
    height: 80px;
    padding: 8px;
  }
  
  .appointment-time-slot .time-slot-time {
    font-size: 14px;
  }
}
