/* 1. 메인 히어로 슬라이더 */
.carousel-item {
    height: 640px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15, 45, 82, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 0 20px;
    z-index: 2;
}

.caption-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(179, 149, 88, 0.25);
    border: 1px solid var(--accent-gold);
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.caption-content h2 {
    font-size: 2.8rem;
    line-height: 1.35;
    margin-top: 15px;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.caption-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e2e8f0;
}

/* 2. 슬라이드 애니메이션 제어 */
.carousel-item .animate-fade-up-1,
.carousel-item .animate-fade-up-2,
.carousel-item .animate-fade-up-3,
.carousel-item .animate-fade-up-4 {
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes carouselFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active .animate-fade-up-1,
.carousel-item.active .animate-fade-up-2,
.carousel-item.active .animate-fade-up-3,
.carousel-item.active .animate-fade-up-4 {
    animation: carouselFadeUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.carousel-item.active .animate-fade-up-1 { animation-delay: 0.15s; }
.carousel-item.active .animate-fade-up-2 { animation-delay: 0.35s; }
.carousel-item.active .animate-fade-up-3 { animation-delay: 0.55s; }
.carousel-item.active .animate-fade-up-4 { animation-delay: 0.75s; }

/* 3. 섹션 타이틀 및 디자인 서식 */
.section-subtitle {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 32px 25px;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--soft-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--main-blue);
    margin-bottom: 20px;
}

/* 4. SMS 신청 인풋 그룹 */
.sms-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.form-select-custom, .form-control-custom {
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    font-size: 0.95rem;
    color: #334155;
}
.form-select-custom { flex: 1; min-width: 130px; font-weight: 500; }
.form-control-custom { flex: 1.5; min-width: 130px; padding-left: 15px; }
.form-select-custom:focus, .form-control-custom:focus {
    border-color: var(--point-blue);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
    outline: none;
}
.btn-sms-new {
    background-color: var(--accent-gold);
    color: #fff;
    font-weight: 700;
    height: 48px;
    padding: 0 28px;
    border-radius: 8px !important;
    border: none;
    transition: var(--transition);
}
.btn-sms-new:hover { background-color: #9a7f45; color: #fff; }
.btn-sms-new:disabled { background-color: #cbd5e1; cursor: not-allowed; }

/* 반응형 세팅 */
@media (max-width: 768px) {
    .carousel-item { height: 500px; }
    .caption-content h2 { font-size: 1.85rem; line-height: 1.35; }
    .caption-content p { font-size: 0.95rem; }
    .sms-input-group { flex-direction: column; }
    .form-select-custom, .form-control-custom, .btn-sms-new { width: 100%; flex: none; }
}