/* ================================
   CONTACT PAGE SPECIFIC STYLES
================================ */

/* Main Content */
.contact-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-wrapper {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

/* Left Side - Info */
.contact-info {
  position: sticky;
  top: 8rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--primary);
}

.contact-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 2.5rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--surface-card);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 0, 0, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Owl decoration */
.owl-decoration {
  position: relative;
  width: 100px;
  height: 100px;
  margin-top: 2.5rem;
}

.owl-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.owl-eye {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  top: 48%;
  transition: transform 0.15s ease-out;
}

.owl-eye.left { left: 33%; }
.owl-eye.right { right: 33%; }

/* Right Side - Form */
.contact-form-container {
  background: var(--surface-card);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(139, 0, 0, 0.2);
}

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

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.selected-offer {
  background: rgba(139, 0, 0, 0.15);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.selected-offer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.offer-badge {
  background: var(--primary);
  color: var(--text);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.offer-name {
  color: var(--text);
  font-weight: 600;
}

.change-offer {
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.3s;
}

.change-offer:hover {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.form-group label .required {
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--surface-card);
  color: var(--text);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--primary);
  text-decoration: underline;
}

/* Error Message */
.error-message {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.error-message p {
  color: #fca5a5;
  font-size: 0.9rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-message p::before {
  content: '⚠️';
}

/* Contact page submit button override */
.contact-form .submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-form .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form .submit-btn svg {
  width: 20px;
  height: 20px;
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: 2rem;
}

.success-message.visible {
  display: block;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(45, 90, 39, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.success-message h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.success-message p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.success-message a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.3s;
}

.success-message a:hover {
  opacity: 0.8;
}

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

/* Contact Footer Override */
.contact-page ~ .footer {
  padding: 2rem;
  text-align: center;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    position: static;
  }

  .owl-decoration {
    display: none;
  }
}

@media (max-width: 600px) {
  .contact-page {
    padding: 6rem 1rem 2rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info h1 {
    font-size: 2rem;
  }
}
