.rf-module {
  padding: 60px 0;
  background: #F6F8FB;
}

.rf-container{
    max-width: 760px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow:
        0 10px 30px rgba(15,23,42,.04),
        0 2px 10px rgba(15,23,42,.03);
}

.rf-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #0F172A;
  line-height: 1.5; /* увеличенный межстрочный интервал */
  word-break: break-word; /* перенос слов если нужно */
  font-weight: 400;
}

.rf-live {
  text-align: center;
  color: #64748B;
  margin-bottom: 10px;
}

.rf-live-count {
  color: #5A50C8;
  font-weight: bold;
}

.rf-progress {
  height: 6px;
  background: #E2E8F0;
  border-radius: 6px;
  margin-bottom: 20px;
}

.rf-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5A50C8, #2F7D6B);
}

.rf-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rf-input-wrap {
  position: relative;
}

.rf-input,
.rf-textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box; /* чтобы padding не ломал ширину */
}

.rf-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 4px;
  color: #64748B;
  transition: 0.2s;
  cursor: text; /* чтобы при клике активировалось поле */
}

.rf-input:focus + .rf-label,
.rf-input:not(:placeholder-shown) + .rf-label,
.rf-textarea:focus + .rf-label,
.rf-textarea:not(:placeholder-shown) + .rf-label {
  top: -8px;
  font-size: 12px;
  color: #5A50C8;
}

/*.rf-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #5A50C8;
}*/

.rf-input:focus,
.rf-textarea:focus{
    border-color: rgba(90,80,200,.35);
    box-shadow: 0 0 0 4px rgba(90,80,200,.08);
}

.rf-input:focus ~ .rf-line,
.rf-textarea:focus ~ .rf-line {
  width: 100%;
}

.rf-btn-primary{
    height: 58px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 16px;
    background: #2F7D6B;
	color: #fff;
	cursor: pointer;
	border: none;
}

.rf-btn-primary:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 24px #2F7D6B;
	transition: all 0.3s ease;
}

.rf-message.success {
  background: #D1FAE5; /* более заметный зеленый */
  color: #065F46;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
}

.rf-message.error {
  background: #FFE5E5;
  color: #991B1B;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
}

.rf-autodetect {
  color: #2F7D6B;
  font-size: 13px;
}

.rf-btn-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  vertical-align: middle;
}

/* Мобильная адаптивность */
@media (max-width: 480px) {
  .rf-input,
  .rf-textarea {
    padding: 12px;
    font-size: 16px;
  }

  .rf-container {
    padding: 0 12px;
  }

  .rf-title {
    font-size: 24px;
  }
}