/* Explore::ContactComponent Styles */

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: var(--section-spacing-lg) var(--size-4);
  margin-bottom: var(--section-spacing-sm);
}

.contact-header {
  text-align: center;
  margin-bottom: var(--section-spacing-lg);
  max-width: 800px;
}

.contact-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--size-4);
  line-height: var(--line-height-tight);
}

.contact-subtitle {
  font-size: var(--text-lg);
  line-height: var(--line-height-normal);
  margin: 0;
}

.contact-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: var(--section-spacing-lg);
}

/* Contact Info Cards */
.contact-info {
  margin-bottom: 0;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--size-6);
}

.contact-card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-xl);
  padding: var(--size-6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.contact-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--size-3);
  margin-bottom: var(--size-4);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-accent);
  color: var(--color-text-reversed);
  border-radius: var(--rounded-lg);
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--color-accent-light);
  box-shadow: var(--shadow-md);
}

.contact-card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin: 0;
  line-height: var(--line-height-tight);
}

.contact-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--size-3);
  align-items: center;
  text-align: center;
}

.contact-card-text {
  font-size: var(--text-base);
  color: var(--color-text);
  margin: 0;
  line-height: var(--line-height-normal);
}

.contact-card-text-secondary {
  font-size: var(--text-sm);
  margin: 0;
  line-height: var(--line-height-normal);
}

.contact-card-cta {
  margin-top: var(--size-2);
}

/* Feedback CTA */
.contact-feedback-cta {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-xl);
  padding: var(--size-6);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-feedback-cta:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feedback-cta-content {
  display: flex;
  flex-direction: column;
  gap: var(--size-6);
  align-items: center;
  text-align: center;
}

.feedback-cta-text {
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
}

.feedback-cta-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin: 0;
  margin-bottom: var(--size-2);
  line-height: var(--line-height-tight);
}

.feedback-cta-description {
  font-size: var(--text-base);
  color: var(--color-text);
  margin: 0;
  line-height: var(--line-height-normal);
}

.feedback-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary);
  color: var(--color-text-reversed);
  border-radius: var(--rounded-full);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feedback Form Dialog Sheet */
.sheet {
  background-color: var(--color-bg);
  block-size: var(--size-full);
  border-inline-width: var(--sheet-border);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  inline-size: var(--sheet-size, var(--size-3-4));
  margin-inline: var(--sheet-margin);
  max-block-size: unset;
  &::backdrop {
    background-color: rgba(0, 0, 0, .5);
  }
  /* Setup transition */
  transition-behavior: allow-discrete;
  transition-duration: var(--time-300);
  transition-property: display, overlay, transform;
  &::backdrop {
    transition-behavior: allow-discrete;
    transition-duration: var(--time-150);
    transition-property: display, overlay, opacity;
  }
  /* Exit stage to */
  & { transform: var(--sheet-transform); }
  &::backdrop { opacity: 0; }
  /* On stage */
  &[open] { transform: translateX(0); }
  &[open]::backdrop { opacity: 1; }
  /* Enter stage from */
  @starting-style {
    &[open] { transform: var(--sheet-transform); }
    &[open]::backdrop { opacity: 0;}
  }
  @media (width >= 40rem) {
    max-inline-size: var(--sheet-size, var(--max-i-sm));
  }
}
.sheet--left {
  --sheet-border: 0 1px;
  --sheet-margin: 0 auto;
  --sheet-transform: translateX(-100%);
}
.sheet--right {
  --sheet-border: 1px 0;
  --sheet-margin: auto 0;
  --sheet-transform: translateX(100%);
}
.sheet__content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
  padding: var(--size-6) var(--size-4);
}

.sheet__close {
  position: absolute;
  inset-block-start: var(--size-4);
  inset-inline-end: var(--size-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-8);
  height: var(--size-8);
  border: none;
  border-radius: var(--rounded-sm);
  background: transparent;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
  z-index: 10;
}

.sheet__close:focus-visible {
  outline: 0;
  outline-offset: 0;
}

.sheet__close:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text);
}

.sheet__close-icon {
  width: var(--size-5);
  height: var(--size-5);
  flex-shrink: 0;
}

/* Feedback Dialog Form Styles - Mobile First */
.feedback-modal-wrapper {
  height: 100%;
}

.feedback-modal-header {
  margin-bottom: var(--size-5);
  text-align: center ;
  padding-bottom: var(--size-4);
  border-bottom: 1px solid var(--color-border);
}

.feedback-modal-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin: 0 0 var(--size-2) 0;
  line-height: var(--line-height-tight);
}

.feedback-modal-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--line-height-normal);
}

.feedback-modal-fields {
  display: flex;
  flex-direction: column;
  gap: var(--size-4);
  margin-bottom: var(--size-4);
}

.feedback-modal-field {
  display: flex;
  flex-direction: column;
  gap: var(--size-1-5);
}

.feedback-modal-field label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
}

.feedback-modal-field .input {
  width: 100%;
  font-size: var(--text-base);
  padding: var(--size-3);
}

.feedback-modal-field textarea.input {
  min-height: 100px;
}

.feedback-modal-hint {
  display: flex;
  align-items: flex-start;
  gap: var(--size-2);
  padding: var(--size-2);
  background: var(--color-bg-subtle);
  border-radius: var(--rounded-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: var(--line-height-normal);
}

.feedback-modal-hint-icon {
  flex-shrink: 0;
  width: var(--size-4);
  height: var(--size-4);
  color: var(--color-primary);
  margin-top: 2px;
}

/* Mobile: Buttons stacked vertically (block style) */
.feedback-modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--size-3);
  padding-top: var(--size-2);
  margin-bottom: 0;
}

.feedback-modal-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: var(--text-base);
}

/* Hide info cards on mobile */
.feedback-modal-info {
  display: none;
}

@media (min-width: 400px) and (min-height: 700px) {
  .sheet__content {
    padding: var(--size-6) var(--size-4);
  }

  .feedback-modal-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .feedback-modal-header {
    padding-bottom: 0;
    margin-bottom: var(--size-2);
  }

  .feedback-modal-fields{
    margin-bottom: 0;
  }

  .feedback-modal-hint{
    margin-top: var(--size-2);
    justify-content: center;
  }

  .feedback-modal-actions{
    gap: var(--size-4);
    margin-bottom: var(--size-8);
  }

  .feedback-modal-info {
    display: block;
    gap: var(--size-2);
    padding: var(--size-6) 0;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--color-border);
    margin-top: var(--size-2);
  }

  .feedback-modal-info-title {
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin: 0 0 var(--size-2) 0;
    padding: var(--size-2);
  }

  .feedback-modal-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--size-3);
    padding: var(--size-3);
    background: var(--color-bg);
    border-radius: var(--rounded-md);
    transition: background-color 0.2s ease;
  }

  .feedback-modal-info-card:hover {
    background: var(--color-bg-hover);
  }

  .feedback-modal-info-icon {
    flex-shrink: 0;
    width: var(--size-5);
    height: var(--size-5);
    color: var(--color-primary);
    opacity: 0.7;
  }

  .feedback-modal-info-text {
    display: flex;
    flex-direction: column;
    gap: var(--size-1);
  }

  .feedback-modal-info-text strong {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    line-height: var(--line-height-tight);
  }

  .feedback-modal-info-text span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: var(--line-height-normal);
  }
}

@media (min-width: 768px) {
  .contact-container {
    padding: var(--section-spacing-md) var(--size-6);
    margin-bottom: var(--section-spacing-sm);
  }

  .contact-title {
    font-size: var(--text-4xl);
  }

  .contact-subtitle {
    font-size: var(--text-xl);
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--size-6);
  }

  .contact-card {
    padding: var(--size-6);
  }

  .contact-card-title {
    font-size: var(--text-xl);
  }

  .contact-card-text {
    font-size: var(--text-lg);
  }

  .contact-feedback-cta {
    padding: var(--size-8);
  }

  .feedback-cta-content {
    min-height: 250px;
    justify-content: space-evenly;
  }

  .feedback-cta-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--size-2);
  }

  .feedback-cta-description {
    font-size: var(--text-lg);
  }

  .sheet {
    --sheet-size: 500px;
  }

  .sheet__content {
    padding: var(--size-10);
  }

  .feedback-modal-header {
    margin-bottom: var(--size-6);
  }

  .feedback-modal-fields{
    gap: var(--size-4);
  }

  .feedback-modal-field {
    gap: var(--size-2);
  }

  .feedback-modal-field label, .feedback-modal-field .input {
    font-size: var(--text-lg);
  }

  .feedback-modal-title {
    font-size: var(--text-2xl);
  }

  .feedback-modal-subtitle {
    margin-bottom: var(--size-4);
    font-size: var(--text-xl);
  }
  
  .feedback-modal-hint{
    font-size: var(--text-lg);
    margin: var(--size-6) 0;
    justify-content: center;
  }
  .feedback-modal-actions {
    flex-direction: row;
    justify-content: center;
    margin-bottom: var(--size-6);
    padding-top: var(--size-4);
    border-top: 1px solid var(--color-border);
  }
  
  .feedback-modal-actions .btn {
    width: 100%;
  }
  
  .feedback-modal-info {
    display: flex;
    flex-direction: column;
    gap: var(--size-4);
    padding: var(--size-2);
    border-radius: var(--rounded-lg);
  }

  .feedback-modal-info-title {
    font-size: var(--text-xl);
    text-align: center;
  }
  
  .feedback-modal-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--size-4);
    padding: var(--size-4);
    background: var(--color-bg);
    border-radius: var(--rounded-md);
    transition: background-color 0.2s ease;
  }
  
  .feedback-modal-info-card:hover {
    background: var(--color-bg-hover);
  }  
  
  .feedback-modal-info-icon {
    flex-shrink: 0;
    width: var(--size-6);
    height: var(--size-6);
    color: var(--color-primary);
    opacity: 0.7;
  }
  
  .feedback-modal-info-text {
    display: flex;
    flex-direction: column;
    gap: var(--size-1-5);
  }
  
  .feedback-modal-info-text strong {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    line-height: var(--line-height-tight);
  }
  
  .feedback-modal-info-text span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-normal);
  }
}

/* Desktop (1024px+): Info cards in 3 columns */
@media (min-width: 1024px) {

  .contact-container {
    padding: var(--section-spacing-md) var(--size-8);
    margin-bottom: var(--section-spacing-sm);
  }

  .contact-title {
    font-size: var(--text-4xl);
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--size-8);
  }

  .contact-card {
    padding: var(--size-8);
  }

  .contact-card-title {
    font-size: var(--text-xl);
  }

  .contact-card-text {
    font-size: var(--text-lg);
  }

  .contact-feedback-cta {
    padding: var(--size-12);
  }

  .sheet {
    --sheet-size: 600px;
  }

  .sheet__content {
    padding: var(--size-6);
    padding-bottom: var(--size-2);
  }
  .feedback-modal-wrapper{
    height: auto;
  }
  .feedback-modal-hint{
    margin: var(--size-2) 0;
  }

  .feedback-modal-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--color-border);
  }

  .feedback-modal-info-title {
    font-size: var(--text-2xl);
  }
  
  .feedback-modal-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--size-5);
  }
  
  .feedback-modal-info-icon {
    width: var(--size-8);
    height: var(--size-8);
  }

  .feedback-modal-info-text {
    gap: var(--size-2);
  }

  .feedback-modal-info-text strong {
    font-size: var(--text-lg);
  }

  .feedback-modal-info-text span {
    font-size: var(--text-base);
  }
}

@media (min-width: 1280px) {
  .feedback-modal-info {
    margin-bottom: var(--size-2);
  }
}

/* Large Desktop (1440px+): Even wider sheet */
@media (min-width: 1440px) {
  .contact-container {
    padding: var(--section-spacing-lg) var(--size-8);
  }

  .contact-cards-grid {
    gap: var(--size-12);
  }

  .contact-card {
    padding: var(--size-12);
  }

  .contact-feedback-cta {
    padding: var(--section-spacing-xl);
  }

  .sheet {
    --sheet-size: 700px;
  }

  .sheet__content {
    padding: var(--size-6);
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-container:focus-within {
  outline: 2px solid var(--color-selected-light);
  outline-offset: 2px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-card-icon,
  .contact-feedback-cta,
  .feedback-cta-icon,
  .feedback-cta-button {
    transition: none;
  }

  .contact-card:hover,
  .contact-feedback-cta:hover {
    transform: none;
  }

  .contact-card:hover .contact-card-icon,
  .contact-feedback-cta:hover .feedback-cta-icon {
    transform: none;
  }

  .feedback-cta-button:hover {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .contact-card,
  .contact-feedback-cta {
    border: 2px solid var(--color-border-dark);
  }

  .contact-card-icon,
  .feedback-cta-icon {
    border: 2px solid var(--color-primary);
  }

  .feedback-cta-button {
    border: 2px solid var(--color-primary);
  }
} 