/* quote.css - Premium Design for Request Quote Page */

/* Base Page Layout */
.quote-page {
  padding: 4rem 1.5rem;
  min-height: calc(100vh - 8rem); /* Account for generic headers/footers */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-grey-5);
}

.quote-header {
  text-align: center;
  margin-block-end: 3rem;
  max-width: 600px;
}

.quote-header__title {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary);
  margin-block-end: 1rem;
  letter-spacing: -0.02em;
}

.quote-header__desc {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Form Container Card */
.quote-form-container {
  width: 100%;
  max-width: 640px;
  background-color: var(--card);
  padding: 3rem;
  border-radius: var(--radius-large);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), 0 2px 10px -2px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glassmorphism subtle overlay if context allows background bleed */
@supports (backdrop-filter: blur(10px)) {
  .quote-form-container {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
  }
}

/* Form Fields */
.quote-form__field {
  margin-block-end: 1.5rem;
  display: flex;
  flex-direction: column;
}

.quote-form__field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-block-end: 0.5rem;
}

.quote-form__field label span[aria-hidden="true"] {
  color: var(--destructive);
  margin-inline-start: 0.25rem;
}

.quote-form__field input[type="text"],
.quote-form__field input[type="email"],
.quote-form__field input[type="tel"],
.quote-form__field input[type="number"],
.quote-form__field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.quote-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.quote-form__field input:focus,
.quote-form__field textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(58, 93, 174, 0.1); /* Subtle ring blur */
}

/* Native field validation errors */
.quote-form__field input:user-invalid,
.quote-form__field textarea:user-invalid {
  border-color: var(--destructive);
}

/* Radio Group */
.quote-form__radio-group {
  display: flex;
  gap: 1.5rem;
  padding-block-start: 0.5rem;
}

.quote-form__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--primary);
}

.quote-form__radio input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Actions & Button */
.quote-form__actions {
  margin-block-start: 2rem;
  display: flex;
  justify-content: flex-end;
}

.quote-form__submit {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-foreground);
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.quote-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background-color: var(--color-grey-80);
}

.quote-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Success & Error Messages */
.quote-form__success,
.quote-form__error {
  margin-block-start: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
}

.quote-form__success {
  background-color: rgba(0, 114, 79, 0.1); /* var(--category-university-light) */
  color: var(--category-university);
  border: 1px solid rgba(0, 114, 79, 0.2);
}

.quote-form__error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive RTL Support Note:
 * Padding and margin 'inline' properties used implicitly above
 * to naturally flip the layout for RTL languages automatically.
 */

@media (max-width: 640px) {
  .quote-page {
    padding: 2rem 1rem;
  }
  
  .quote-form-container {
    padding: 2rem 1.5rem;
  }

  .quote-form__radio-group {
    flex-direction: column;
    gap: 1rem;
  }

  .quote-form__actions {
    justify-content: stretch;
  }

  .quote-form__submit {
    width: 100%;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
