/* =============================================================================
📄 FILE: store-contact.css
🎯 PURPOSE: Styling for Contact Page Info Box & Form
🛠 VERSION: Phase V — Info Box Row Fix (Form Stays Full Width)
============================================================================= */

/* -----------------------------------------------------------------------------
📦 Info Section Wrapper
----------------------------------------------------------------------------- */
.store-info-section-wrapper {
  width: 100%;
  margin: 4px auto 0;
  padding: 20px;
  background: #ffffff;
  border: 2px solid #004f5a;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
📦 Info Box
----------------------------------------------------------------------------- */
.store-info-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin: 24px auto 0;
  max-width: 900px;
}

.store-info-box h2 {
  margin-bottom: 12px;
  color: #004f5a;
  font-size: 1.5rem;
  text-align: center;
}

/* -----------------------------------------------------------------------------
📏 Info Box Fix — Row Layout for First Box
----------------------------------------------------------------------------- */
.store-info-section-wrapper .store-info-box:first-of-type,
.store-info-section-wrapper .store-info-box--image-left:first-of-type {
  flex-direction: row; /* Only the first box gets horizontal layout */
  align-items: center;
}

.store-info-section-wrapper .store-info-box--image-right:first-of-type {
  flex-direction: row-reverse;
  align-items: center;
}

.store-info-section-wrapper .store-info-box--image-center:first-of-type {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.store-info-box img.store-info-image {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.store-info-box--image-left img.store-info-image {
  margin-right: 20px;
}

.store-info-box--image-right img.store-info-image {
  margin-left: 20px;
}

.store-info-box--image-center img.store-info-image {
  margin: 0 auto 10px;
}

.store-info-box .store-info-text {
  flex: 1;
  text-align: left;
}

.store-info-box--image-center .store-info-text {
  text-align: center;
}

/* -----------------------------------------------------------------------------
📝 Form Styling
----------------------------------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-weight: bold;
  color: #004f5a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 860px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* -----------------------------------------------------------------------------
🔘 Button Styling
----------------------------------------------------------------------------- */
/* 🔘 Button Styling (themed) */
.contact-form button {
  align-self: flex-start;
  background: var(--primary);
  color: var(--on_primary);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: color-mix(in oklab, var(--primary) 90%, black 10%);
}

/* -----------------------------------------------------------------------------
✅ Success Message
----------------------------------------------------------------------------- */
.contact-success {
  display: none;
  color: green;
  font-weight: bold;
  margin-top: 10px;
}

/* -----------------------------------------------------------------------------
📱 Responsive
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .store-info-section-wrapper .store-info-box:first-of-type {
    flex-direction: column;
    text-align: center;
  }

  .store-info-box img.store-info-image {
    max-width: 120px;
    max-height: 120px;
    margin: 0 auto 10px;
  }

  .store-info-box .store-info-text {
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    max-width: 100%;
  }
}
