/* ========== Contact Page ========== */

:root {
  --voreas-red: #8B1538;
  --voreas-red-light: #A8204A;
  --voreas-red-dark: #6B1029;
}

/* ===== Branch Selection ===== */
.contact-branch {
  padding: 80px 0 100px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.contact-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--voreas-red);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.contact-subtitle {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin-bottom: 56px;
  line-height: 1.8;
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.branch-card {
  border: 2px solid var(--voreas-red);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.branch-card:hover {
  background-color: var(--voreas-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 21, 56, 0.2);
}

.branch-card:hover .branch-card__title,
.branch-card:hover .branch-card__desc,
.branch-card:hover .branch-card__arrow {
  color: #fff;
}

.branch-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--voreas-red);
  margin-bottom: 20px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.branch-card__desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
  transition: color 0.3s ease;
}

.branch-card__arrow {
  font-size: 24px;
  color: var(--voreas-red);
  font-weight: 700;
  transition: color 0.3s ease;
}

/* ===== Form Section ===== */
.contact-form-section {
  padding: 60px 0 100px;
  min-height: calc(100vh - 64px);
}

.back-btn {
  background: none;
  border: none;
  color: var(--voreas-red);
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 32px;
  font-family: var(--font-family);
  transition: opacity 0.2s;
}

.back-btn:hover {
  opacity: 0.7;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 28px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--voreas-red);
  margin-bottom: 8px;
}

.required {
  font-size: 12px;
  color: #fff;
  background: var(--voreas-red);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  margin-left: 4px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--voreas-red);
  box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.form-field textarea {
  resize: vertical;
}

.form-consent {
  margin-bottom: 32px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--voreas-red);
  flex-shrink: 0;
}

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

.contact-submit {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 0 auto;
  background-color: var(--voreas-red);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-submit:hover {
  background-color: var(--voreas-red-dark);
  opacity: 1;
}

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

/* ===== Success / Error ===== */
.contact-success,
.contact-error {
  padding: 80px 0 100px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.success-card,
.error-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4CAF50;
  color: #fff;
  font-size: 36px;
  line-height: 72px;
  margin: 0 auto 24px;
}

.error-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 72px;
  margin: 0 auto 24px;
}

.success-card h2,
.error-card h2 {
  font-size: 24px;
  color: var(--voreas-red);
  margin-bottom: 16px;
}

.success-card p,
.error-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .contact-title {
    font-size: 24px;
  }

  .contact-subtitle {
    font-size: 13px;
    margin-bottom: 36px;
  }

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

  .branch-card {
    padding: 36px 24px;
    min-height: 200px;
  }

  .branch-card__title {
    font-size: 18px;
  }

  .branch-card__desc {
    font-size: 14px;
  }

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