/* === Custom Form Manager Pro (Enhanced UI) === */
.cfmpro-form {
  max-width: 650px;
  margin: 50px auto;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid #e8eaf0;
  padding: 35px 40px;
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  font-family: var(--e-global-typography-text-font-family);
  color: #2c3e50;
  transition: all 0.3s ease;
}

.cfmpro-form:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.cfmpro-form h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 700;
  color: #1d2939;
  letter-spacing: -0.3px;
}

.cfmpro-field {
  position: relative;
  margin-bottom: 24px;
}

.cfmpro-form label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  transition: color 0.2s ease;
}

.cfmpro-field input,
.cfmpro-field select,
.cfmpro-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  color: #111827;
  transition: all 0.25s ease;
}

.cfmpro-field input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

.cfmpro-field input:focus,
.cfmpro-field select:focus,
.cfmpro-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

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

/* === Design Grid Section === */
.cfmpro-designs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.cfmpro-design {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #f9fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.cfmpro-design:hover {
  transform: translateY(-3px);
  border-color: #60a5fa;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.cfmpro-design img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.25s ease;
}

.cfmpro-design:hover img {
  transform: scale(1.05);
}

.cfmpro-design input {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.cfmpro-design input:checked + img {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
  filter: brightness(0.95);
}

/* === Price Display === */
.cfmpro-price-display {
  text-align: right;
  font-size: 18px;
  margin-top: 15px;
  font-weight: 600;
  color: #1e293b;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}
.cfmpro-radio-group {
    display: flex;
    gap: 30px;
}
label.cfmpro-radio {
    display: flex;
    align-items: center;
}
label.cfmpro-radio img {
    width: 145px;
    height: 80px;
    object-fit: cover;
    object-position: top;
}
/* === Button === */
.cfmpro-btn {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, var(--e-global-color-accent), var(--e-global-color-accent));
    color: #000000 !important;
    padding: 14px 22px;
    border-radius: 10px;
    border: none !important;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.25s ease;
}

.cfmpro-btn:hover {
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.cfmpro-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

/* === Responsive === */
@media (max-width: 600px) {
  .cfmpro-form {
    padding: 20px;
    border-radius: 12px;
  }
  .cfmpro-form h2 {
    font-size: 22px;
  }
  .cfmpro-price-display {
    text-align: left;
  }
  .cfmpro-btn {
    font-size: 16px;
  }
}
