.custom-form * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.custom-form {
    position: relative;
    max-width: 768px;
    width: 100%;
    margin: 2rem auto;
    background: #ffffff;
    /*border-radius: 28px;*/
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    /*overflow: hidden;*/
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-form:hover {
    box-shadow: 0 24px 42px -14px rgba(0, 0, 0, 0.18);
}

/* 标题区域 */
.custom-form h2 {
    background: linear-gradient(135deg, #b00226 0%, rgb(219, 2, 38) 100%);
    margin: 0;
    padding: 1.4rem 1.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: white;
    text-align: center;
}





.custom-form::before {
    content: "30%折扣";
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -20px;
    right: -10px;
    left: auto;
    height: 85px;
    width: 85px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    padding: 0.5rem;
    /* 纯金色背景（替换渐变） */
    background: #f5c800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 20;
    box-shadow: 0 0 0 4px rgba(245, 230, 66, 0.5), 0 8px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    animation: sunGlow 1.8s ease-in-out infinite;
    transform-origin: center;
    cursor: default;
}

/* 太阳外圈光芒射线 */
.custom-form::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -18px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: transparent;
    z-index: 15;
    pointer-events: none;
    animation: sunRays 3s linear infinite;
}

/* 呼吸 + 微旋转动画 */
@keyframes sunGlow {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 
            0 0 0 0 rgba(245, 230, 66, 0.8),
            0 0 0 6px rgba(245, 230, 66, 0.3),
            0 0 0 14px rgba(245, 230, 66, 0.12),
            0 8px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 
            0 0 0 6px rgba(245, 230, 66, 0.9),
            0 0 0 14px rgba(245, 230, 66, 0.4),
            0 0 0 22px rgba(245, 230, 66, 0.18),
            0 12px 30px rgba(0, 0, 0, 0.3);
        /* 动画中间纯金色提亮 */
        background: #ffd700;
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 
            0 0 0 0 rgba(245, 230, 66, 0.8),
            0 0 0 6px rgba(245, 230, 66, 0.3),
            0 0 0 14px rgba(245, 230, 66, 0.12),
            0 8px 20px rgba(0, 0, 0, 0.2);
    }
}

/* 旋转光芒 */
@keyframes sunRays {
    0% {
        transform: rotate(0deg);
        box-shadow: 
            inset 0 0 0 2px rgba(245, 230, 66, 0.6),
            0 0 0 0 transparent;
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 
            inset 0 0 0 2px rgba(245, 230, 66, 0.6),
            0 0 0 0 transparent;
    }
}

/* 响应式适配 */
@media (max-width: 560px) {
    .custom-form::before {
        top: -12px;
        right: -5px;
        height: 65px;
        width: 65px;
        font-size: 0.7rem;
        padding: 0.35rem;
    }
    .custom-form::after {
        top: -18px;
        right: -10px;
        width: 80px;
        height: 80px;
    }
}











/* 表单主体 */
.custom-form form {
    padding: 1.8rem 2rem 2rem;
    background: #ffffff;
}

/* 表单项组 */
.custom-form .form-group {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
}

.custom-form .form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #1e2f3e;
    letter-spacing: 0.3px;
}

/* 输入框统一样式 */
.custom-form .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    background-color: #fbfdfe;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    transition: all 0.2s ease;
    outline: none;
    color: #1a2c3e;
}

.custom-form .form-control:focus {
    border-color: rgb(219, 2, 38);
    box-shadow: 0 0 0 3px rgba(219, 2, 38, 0.12);
    background-color: #ffffff;
}

/* 文件上传定制 */
.custom-form input[type="file"] {
    padding: 0.6rem 0.8rem;
    background-color: #f8fafc;
    border: 1.5px dashed #cbdde9;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #2c4c6e;
    font-family: inherit;
}

.custom-form input[type="file"]:hover {
    background-color: #f1f5f9;
    border-color: rgb(219, 2, 38);
}

.custom-form input[type="file"]::file-selector-button {
    background: #fef0f2;
    border: none;
    border-radius: 30px;
    padding: 6px 16px;
    font-family: inherit;
    font-weight: 500;
    color: rgb(219, 2, 38);
    margin-right: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.custom-form input[type="file"]::file-selector-button:hover {
    background: #fce4e8;
}

/* 提交按钮 */
.custom-form #submit-btn {
    width: 100%;
    background: linear-gradient(95deg, #b00226 0%, rgb(219, 2, 38) 100%);
    border: none;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.8rem;
    letter-spacing: 0.8px;
}

.custom-form #submit-btn:hover {
    background: linear-gradient(95deg, #d00230 0%, rgb(199, 2, 35) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -6px rgba(219, 2, 38, 0.35);
}

.custom-form #submit-btn:active {
    transform: translateY(1px);
}

/* 响应式适配 */
@media (max-width: 560px) {
    .custom-form {
        margin: 1rem auto;
        border-radius: 24px;
    }
    .custom-form h2 {
        font-size: 1.3rem;
        padding: 1.1rem 1.2rem;
    }
    .custom-form form {
        padding: 1.2rem 1.2rem 1.5rem;
    }
    .custom-form .form-control {
        padding: 0.7rem 0.9rem;
    }
    .custom-form #submit-btn {
        padding: 0.75rem;
    }
}