.rgf {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 24px;
    max-width: 500px;
    margin: 40px auto;
    background-color: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.rgf input[type="text"],
.rgf input[type="email"],
.rgf input[type="tel"],
.rgf select {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  height: 42px;
  padding: 0 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rgf input:focus,
.rgf select:focus {
  outline: none;
  border-color: #5b9bd5;
  box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.2);
}
.phone-input-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}
.phone-input-container select {
  width: 90px;
}
.phone-input-container input {
  flex: 1;
  min-width: 200px;
}
.agreement-container {
  display: flex;
  gap: 10px;
  align-items: center;
}
.agreement-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.agreement-container label {
  font-size: 14px;
  color: #666;
}
.rgf button {
  background-color: #e53935;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease,
    transform 0.2s ease;
  width: 60%;
  height: 45px;
  margin: 0 auto;
  display: block;
}
.rgf button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.rgf button:active {
  transform: translateY(0);
  opacity: 0.8;
}
#phoneCode,
.phone-input-container select,
#phoneCode1,
#phoneCode2 {
  padding: 8px 8px 8px 35px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 85px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 1em;
}
@media (max-width: 767px) {
  .phone-input-container select,
  #phoneCode,
  #phoneCode1,
  #phoneCode2 {
    width: 80px;
    padding-right: 20px;
    background-position: right 5px center;
  }
  .selected-flag {
    left: 5px;
  }
}
.country-flag {
  width: 20px;
  height: 15px;
  margin-right: 8px;
  vertical-align: middle;
  object-fit: cover;
}
.phone-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.country-select {
  position: relative;
  display: flex;
  align-items: center;
  width: 30%;
}
.selected-flag {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 15px;
  pointer-events: none;
  z-index: 2;
}
input[type="tel"] {
  width: 100%;
}
