/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  background: #f4f6ff;
  border-radius: 0;
  padding: 30px 35px 35px;
  max-width: 440px;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #2952d9;
  margin-bottom: 6px;
  font-weight: 400;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #b8c4e8;
  border-radius: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2952d9;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* Error State */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error .phone-field {
  border-color: #d11414 !important;
}

.error-message {
  display: none;
  color: #d11414;
  font-size: 14px;
  margin-top: 8px;
  align-items: center;
  gap: 6px;
  font-family: Arial, Helvetica, sans-serif;
}

.form-group.has-error .error-message {
  display: flex;
}

.error-svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===== PHONE FIELD ===== */
.phone-field {
  display: flex;
  align-items: center;
  border: 1px solid #b8c4e8;
  background: #fff;
  position: relative;
}

.phone-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-right: 1px solid #b8c4e8;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.phone-selector:hover {
  background: #f0f2f8;
}

.phone-selector .flag-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.phone-selector .arrow {
  font-size: 10px;
  color: #999;
  margin-left: 2px;
}

.phone-field input {
  border: none;
  flex: 1;
  padding: 10px 12px;
}

.phone-field input:focus {
  border: none;
}

/* ===== COUNTRY DROPDOWN ===== */
.country-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  max-height: 280px;
  background: #fff;
  border: 1px solid #d0d5e4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 500;
  flex-direction: column;
}

.country-dropdown.open {
  display: flex;
}

.country-search {
  padding: 10px 12px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-search svg {
  width: 16px;
  height: 16px;
  color: #999;
  flex-shrink: 0;
}

.country-search input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  color: #333;
  padding: 0;
}

.country-list {
  overflow-y: auto;
  flex: 1;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.15s;
}

.country-item:hover {
  background: #f4f6ff;
}

.country-item .ci-flag {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.country-list::-webkit-scrollbar { width: 6px; }
.country-list::-webkit-scrollbar-track { background: #f5f5f5; }
.country-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.country-list::-webkit-scrollbar-thumb:hover { background: #aaa; }

.submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: #2952d9;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1e3fa8;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== CLOUDFLARE TURNSTILE ===== */
#cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.cf-turnstile-container {
  display: flex;
  justify-content: center;
}
