/* Contact Page Styles - Apple-inspired Design */

/* Container Utilities */
.container-large {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-medium {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.contact-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-brygada-1918);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-family: var(--font-outfit);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  color: #6e6e73;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.2s forwards;
}

/* Contact Info Cards */
.contact-info-section {
  padding: 80px 0 100px;
  background: #ffffff;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.contact-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: 24px;
  background: #fafafa;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.contact-card:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
  animation-delay: 0.3s;
}

.contact-card:nth-child(4) {
  animation-delay: 0.4s;
}

.contact-card:hover {
  transform: translateY(-8px);
  background: #f5f5f7;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.card-title {
  font-family: var(--font-outfit);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 12px;
}

.card-link {
  font-family: var(--font-outfit);
  font-size: 1rem;
  font-weight: 400;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

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

.card-text {
  font-family: var(--font-outfit);
  font-size: 1rem;
  font-weight: 400;
  color: #6e6e73;
  margin: 0;
}

/* Contact Form Section */
.contact-form-section {
  padding: 100px 0 120px;
  background: #fafafa;
}

.form-header {
  text-align: center;
  margin-bottom: 60px;
}

.form-title {
  font-family: var(--font-brygada-1918);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 16px;
}

.form-subtitle {
  font-family: var(--font-outfit);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: #6e6e73;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

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

.form-label {
  font-family: var(--font-outfit);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-input {
  font-family: var(--font-outfit);
  font-size: 1rem;
  padding: 16px 20px;
  border: 2px solid #e5e5e7;
  border-radius: 12px;
  background: #fafafa;
  color: var(--black);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(219, 169, 88, 0.1);
}

.form-input::placeholder {
  color: #86868b;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  font-family: var(--font-outfit);
}

.form-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.submit-btn {
  min-width: 200px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(219, 169, 88, 0.3);
}

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

/* CTA Section */
.contact-cta-section {
  padding: 120px 24px;
  background: var(--color-secondary);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-brygada-1918);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 16px;
}

.cta-subtitle {
  font-family: var(--font-outfit);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 40px;
}

.cta-btn {
  border-color: white;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn:hover:not(:disabled) {
  background: white;
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-hero {
    min-height: 60vh;
    padding: 100px 24px 60px;
  }

  .hero-title {
    margin-bottom: 24px;
  }

  .contact-info-section {
    padding: 60px 0 80px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form-section {
    padding: 80px 0 100px;
  }

  .form-header {
    margin-bottom: 40px;
  }

  .contact-form {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .contact-cta-section {
    padding: 80px 24px;
  }

  .cta-subtitle {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .contact-form {
    padding: 32px 20px;
  }

  .submit-btn {
    width: 100%;
  }
}

/* Form Error Styling */
.form-errors {
  background: #fff3f3;
  border: 1px solid #ff3b30;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.error-message {
  color: #ff3b30;
  font-family: var(--font-outfit);
  font-size: 0.875rem;
  margin: 0;
}

.field-errors {
  margin-top: 8px;
}

.field-error {
  display: block;
  color: #ff3b30;
  font-size: 0.875rem;
  font-family: var(--font-outfit);
  margin-top: 4px;
  animation: fadeIn 0.3s ease;
}

.form-input.error,
.form-input:invalid:not(:placeholder-shown) {
  border-color: #ff3b30;
}

/* Success/Error Message Banners in Hero */
.contact-hero .success-banner,
.contact-hero .message-success {
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  color: white;
  padding: 20px 32px;
  border-radius: 16px;
  margin-bottom: 40px;
  text-align: center;
  animation: slideInFromTop 0.5s ease;
  box-shadow: 0 10px 30px rgba(52, 199, 89, 0.3);
}

.contact-hero .message-error {
  background: linear-gradient(135deg, #ff3b30 0%, #ff2d55 100%);
  color: white;
  padding: 20px 32px;
  border-radius: 16px;
  margin-bottom: 40px;
  text-align: center;
  animation: slideInFromTop 0.5s ease;
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.3);
}

.contact-hero .message-warning {
  background: linear-gradient(135deg, #ff9500 0%, #ff9f0a 100%);
  color: white;
  padding: 20px 32px;
  border-radius: 16px;
  margin-bottom: 40px;
  text-align: center;
  animation: slideInFromTop 0.5s ease;
  box-shadow: 0 10px 30px rgba(255, 149, 0, 0.3);
}

.contact-hero .message-info {
  background: linear-gradient(135deg, #007aff 0%, #0a84ff 100%);
  color: white;
  padding: 20px 32px;
  border-radius: 16px;
  margin-bottom: 40px;
  text-align: center;
  animation: slideInFromTop 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.success-banner p,
.contact-hero [class*="message-"] p {
  margin: 0;
  font-family: var(--font-outfit);
  font-size: 1.125rem;
  font-weight: 500;
}

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

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

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}
