/**
 * Inquiry Page Styles
 * 
 * @package TrekkingInNepal
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.inquiry-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .inquiry-hero {
    padding: 5rem;
  }
}

.inquiry-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.inquiry-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.inquiry-hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: -0.033em;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.inquiry-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 48rem;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Page Layout
   ========================================================================== */

.inquiry-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .inquiry-page {
    padding: 5rem 2.5rem;
  }
}

.inquiry-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .inquiry-container {
    grid-template-columns: 2fr 1fr;
  }
}

/* ==========================================================================
   Form Section
   ========================================================================== */

.inquiry-form-section {
  background: white;
  border: 1px solid #e6dfdb;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .inquiry-form-section {
    padding: 3rem 2.5rem;
  }
}

.inquiry-form-header {
  margin-bottom: 2rem;
}

.inquiry-form-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #181411;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
}

.inquiry-form-subtitle {
  font-size: 1rem;
  color: #8a7260;
  margin: 0;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inquiry-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .inquiry-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.inquiry-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inquiry-form-field-full {
  grid-column: 1 / -1;
}

.inquiry-form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #181411;
}

/* Select Dropdown */
.inquiry-select-wrapper {
  position: relative;
}

.inquiry-select {
  width: 100%;
  height: 3.5rem;
  padding: 0 3rem 0 1rem;
  border: 1px solid #e6dfdb;
  border-radius: 0.5rem;
  background: white;
  font-size: 1rem;
  color: #181411;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
}

.inquiry-select:focus {
  outline: none;
  border-color: #f47b25;
  box-shadow: 0 0 0 3px rgba(244, 123, 37, 0.1);
}

.inquiry-select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #f47b25;
  pointer-events: none;
}

/* Input Fields */
.inquiry-input-wrapper {
  position: relative;
}

.inquiry-input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1rem;
  border: 1px solid #e6dfdb;
  border-radius: 0.5rem;
  background: white;
  font-size: 1rem;
  color: #181411;
  transition: all 0.2s;
}

.inquiry-input:focus {
  outline: none;
  border-color: #f47b25;
  box-shadow: 0 0 0 3px rgba(244, 123, 37, 0.1);
}

.inquiry-input::placeholder {
  color: #94a3b8;
}

.inquiry-input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #f47b25;
  pointer-events: none;
}

/* Textarea */
.inquiry-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e6dfdb;
  border-radius: 0.5rem;
  background: white;
  font-size: 1rem;
  color: #181411;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
  transition: all 0.2s;
}

.inquiry-textarea:focus {
  outline: none;
  border-color: #f47b25;
  box-shadow: 0 0 0 3px rgba(244, 123, 37, 0.1);
}

.inquiry-textarea::placeholder {
  color: #94a3b8;
}

/* Submit Button */
.inquiry-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f47b25 0%, #ff6b35 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(244, 123, 37, 0.3);
  width: 100%;
}

@media (min-width: 768px) {
  .inquiry-submit-btn {
    width: auto;
    min-width: 200px;
  }
}

.inquiry-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 123, 37, 0.4);
}

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

/* Messages */
.inquiry-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.inquiry-message-success {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.inquiry-message-error {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.inquiry-message .material-symbols-outlined {
  font-size: 1.25rem;
}

/* ==========================================================================
   Sidebar Section
   ========================================================================== */

.inquiry-sidebar {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.inquiry-sidebar-card {
  background: white;
  border: 1px solid #e6dfdb;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .inquiry-sidebar-card {
    position: sticky;
    top: 2rem;
  }
}

.inquiry-sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #181411;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f4f2f0;
}

/* Benefits List */
.inquiry-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.inquiry-benefit-item {
  display: flex;
  gap: 1rem;
}

.inquiry-benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 123, 37, 0.1);
  border-radius: 0.5rem;
  color: #f47b25;
}

.inquiry-benefit-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.inquiry-benefit-content {
  flex: 1;
}

.inquiry-benefit-title {
  font-size: 1rem;
  font-weight: 700;
  color: #181411;
  margin: 0 0 0.25rem 0;
}

.inquiry-benefit-desc {
  font-size: 0.875rem;
  color: #8a7260;
  line-height: 1.6;
  margin: 0;
}

/* Testimonial */
.inquiry-testimonial {
  padding: 1rem;
  background: #fcfbf9;
  border: 1px solid #f4f2f0;
  border-radius: 0.5rem;
}

.inquiry-testimonial-text {
  font-size: 0.875rem;
  font-style: italic;
  color: #5a4a3f;
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}

.inquiry-testimonial-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f47b25;
  margin: 0;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 767px) {
  .inquiry-form-title {
    font-size: 1.5rem;
  }
}


/* ==========================================================================
   Form Validation & Enhancement Styles
   ========================================================================== */

/* Field States */
.inquiry-form-field {
  position: relative;
  transition: all 0.3s ease;
}

.inquiry-form-field.error .inquiry-input,
.inquiry-form-field.error .inquiry-select,
.inquiry-form-field.error .inquiry-textarea {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.inquiry-form-field.success .inquiry-input,
.inquiry-form-field.success .inquiry-select,
.inquiry-form-field.success .inquiry-textarea {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.05);
}

/* Field Icons */
.field-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  pointer-events: none;
  z-index: 10;
}

.field-icon.error-icon {
  color: #dc2626;
}

.field-icon.success-icon {
  color: #16a34a;
}

/* Error Message */
.field-error {
  display: block;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.375rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Character Counter */
.character-counter {
  text-align: right;
  font-size: 0.75rem;
  color: #8a7260;
  margin-top: 0.375rem;
  font-weight: 600;
}

.character-counter.warning {
  color: #f59e0b;
}

.character-counter.over-limit {
  color: #dc2626;
}

.character-counter .char-count {
  font-weight: 700;
}

/* Form Progress - Hidden */
.form-progress {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.form-progress-bar {
  height: 0.5rem;
  background: linear-gradient(90deg, #f47b25 0%, #16a34a 100%);
  border-radius: 0.25rem;
  width: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.5rem;
}

.form-progress-text {
  font-size: 0.75rem;
  color: #8a7260;
  font-weight: 700;
  text-align: center;
  display: block;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notification */
.inquiry-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #181411;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 20rem;
}

.inquiry-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.inquiry-notification.error {
  background: #dc2626;
}

.inquiry-notification.success {
  background: #16a34a;
}

.inquiry-notification.info {
  background: #3b82f6;
}

@media (max-width: 768px) {
  .inquiry-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* Input Focus States */
.inquiry-input:focus,
.inquiry-select:focus,
.inquiry-textarea:focus {
  outline: none;
  border-color: #f47b25;
  box-shadow: 0 0 0 3px rgba(244, 123, 37, 0.1);
}

.inquiry-form-field.error .inquiry-input:focus,
.inquiry-form-field.error .inquiry-select:focus,
.inquiry-form-field.error .inquiry-textarea:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.inquiry-form-field.success .inquiry-input:focus,
.inquiry-form-field.success .inquiry-select:focus,
.inquiry-form-field.success .inquiry-textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Smooth Transitions */
.inquiry-form-field,
.inquiry-input,
.inquiry-select,
.inquiry-textarea,
.inquiry-submit-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Hover Effects */
.inquiry-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(244, 123, 37, 0.3);
}

.inquiry-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

/* Enhanced Success Message */
.inquiry-message-success {
  background: rgba(22, 163, 74, 0.1);
  border: 2px solid #16a34a;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideDown 0.5s ease;
}

.inquiry-message-success .material-symbols-outlined {
  color: #16a34a;
  font-size: 2rem;
  flex-shrink: 0;
}

/* Enhanced Error Message */
.inquiry-message-error {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid #dc2626;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideDown 0.5s ease;
}

.inquiry-message-error .material-symbols-outlined {
  color: #dc2626;
  font-size: 2rem;
  flex-shrink: 0;
}
