/**
 * Contact Page Styles
 * Styles for the contact form and contact info blocks
 */

/* Contact Section */
.section.section-pt-sm {
  padding: 16px 0 80px;
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Info Block - Gradient Style */
.contact-info-block {
  background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 40%, #7c3aed 100%);
  border: none;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(67, 56, 202, 0.3);
  height: fit-content;
}

.contact-info-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  text-align: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-link:last-of-type {
  margin-bottom: 0;
}

.contact-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-icon.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
}

.contact-link-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.contact-link-text {
  flex: 1;
}

.contact-link-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.contact-link-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.contact-note {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.contact-note strong {
  color: #fbbf24;
}

/* Form Block - Gradient Style */
.contact-form-block {
  background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 40%, #7c3aed 100%);
  border: none;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(67, 56, 202, 0.3);
}

.contact-form-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  text-align: center;
}

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

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-group .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.form-select option {
  background: #1e293b;
  color: #fff;
}

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

.form-submit-btn {
  width: 100%;
  padding: 16px 32px;
  background: #fbbf24;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit-btn:hover {
  background: #f59e0b;
}

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

.form-submit-btn svg {
  width: 20px;
  height: 20px;
  stroke: #1e293b;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Form Messages */
.form-message {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
  display: none;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
}

.form-message.success {
  display: block;
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
}

.form-message.success::before {
  content: attr(data-success-title);
  display: block;
  color: #fbbf24;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.form-message.error {
  display: block;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}

.form-message.error::before {
  content: attr(data-error-title);
  display: block;
  color: #f87171;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
