/* 頂部免費服務介紹區域 - 左圖右文佈局 */
.free-service-hero {
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    background: #fff;
    box-shadow: 0 10px 40px rgba(104, 58, 183, 0.15);
    position: relative;
}

/* 彈窗樣式優化 */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem 1.5rem 1rem;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.5rem 1.5rem;
}

.btn-primary {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #7c3aed;
    border-color: #7c3aed;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-2px);
}

/* 彈窗按鈕樣式優化 */
/* 所有彈窗中的按鈕懸停時文字和圖標顏色改為白色 */
.modal .btn-primary:hover,
.modal .btn-secondary:hover,
.modal .btn-success:hover {
    color: white !important;
}

.modal .btn-primary:hover i,
.modal .btn-secondary:hover i,
.modal .btn-success:hover i {
    color: white !important;
}

/* 成功彈窗中"查看我的訂單"按鈕的懸停樣式 */
#freeFbPageFreeLikesGoToOrders:hover {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: white !important;
    transform: translateY(-2px);
}

#freeFbPageFreeLikesGoToOrders:hover i {
    color: white !important;
}

/* 統一區塊間距 - 精確控制 */
/* 大卡片到優勢說明 */
.services .row.mb-5:first-of-type {
    margin-bottom: 0.5rem !important;
}

/* 優勢說明到業務流程 */
.services .row.mb-5.align-items-center {
    margin-bottom: 0.5rem !important;
}

/* 業務流程到服務列表標題 */
.services .works.py-4 {
    margin-bottom: 3rem !important;
}

/* 服務列表標題到搜索表單 */
.services #services-list.row.mb-4 {
    margin-bottom: 0.5rem !important;
}

/* 左側圖片區域 */
.hero-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    /* 建議圖片尺寸：500x400px 或 600x480px (5:4 比例) */
}

/* 右側內容區域 */
.hero-content {
    padding-left: 2rem;
}

.free-service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(263, 70%, 48%);
    margin-bottom: 1rem;
}

.free-service-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: none;
}

/* 功能項目 - 橫向排列 */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, hsl(263, 70%, 48%), hsl(263, 60%, 55%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-text h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 服務列表小標題 */
.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* 只針對免費服務頁面的特殊樣式 */
.services .btn--base {
    background: hsl(263, 70%, 48%);
    border-color: hsl(263, 70%, 48%);
}

.services .btn--base:hover {
    background: white;
    color: hsl(263, 70%, 48%);
    border-color: hsl(263, 70%, 48%);
    transform: translateY(-2px);
}

.services .form--control:focus {
    border-color: hsl(263, 70%, 48%);
    box-shadow: 0 0 0 0.25rem rgba(104, 58, 183, 0.1);
}

/* 響應式設計 */
@media (max-width: 991px) {
    .hero-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .hero-image-container {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .free-service-hero {
        padding: 2rem 1rem;
    }
    
    .free-service-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .free-service-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .feature-item {
        justify-content: center;
        text-align: left;
    }
    
    .hero-image {
        max-width: 400px;
    }
    .promo-badge { left: 10px; right: auto; top: 10px; }
}

/* 業務流程樣式 - 完全複刻首頁模板2的works樣式 */
.works {
    overflow: hidden;
    position: relative;
}
/* Promo badge */
.promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(104, 58, 183, 0.08);
    color: #198754;
    border: 1px solid rgba(104, 58, 183, 0.25);
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 1.3rem;
    backdrop-filter: blur(2px);
    transform: rotate(-10deg);
    transform-origin: left top;
}

.promo-badge__dot {
    width: 11px;
    height: 11px;
    background: hsl(3, 100%, 62%);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 92, 87, 0.7);
    animation: pulseDot 1.8s ease-out infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(255, 92, 87, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 92, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 92, 87, 0); }
}

.promo-badge__text {
    letter-spacing: 0.2px;
}

.works .card {
    border: none;
    background-color: transparent;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    padding: 15px;
    border-radius: 10px;
    position: relative;
}

.works .card i {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 22px;
    color: hsl(263, 70%, 48%);
    border-radius: 50px;
    text-align: center;
    background-color: hsl(263, 70%, 48%, 0.07);
}

.works .card h5 {
    margin-bottom: 5px;
    margin-top: 15px;
}

.works .card .hr {
    border-top: 2px solid hsl(263, 70%, 48%, 0.3);
    width: 108px;
    margin: auto auto auto 20px;
}

@media (max-width: 576px) {
    .free-service-title {
        font-size: 1.8rem;
    }
    
    .feature-icon-small {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-text h6 {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.85rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    .promo-badge { font-size: 1.4rem; padding: 10px 18px; left: 8px; right: auto; top: 8px; transform: rotate(-12deg); transform-origin: left top; }
    .promo-badge__dot { width: 14px; height: 14px; }
}

/* 體驗規則白色陰影卡片樣式 */
.rule-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.rule-card-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.rule-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, hsl(263, 70%, 48%), hsl(263, 60%, 55%));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.rule-content {
    flex: 1;
}

.rule-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(263, 70%, 48%);
    margin-bottom: 8px;
}

.rule-text {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* 免費體驗表單樣式 */
.trial-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.free-trial-form {
    margin-top: 2rem;
}

.trial-form .form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.trial-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.trial-input:focus {
    outline: none;
    border-color: hsl(263, 70%, 48%);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.trial-input:read-only {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.trial-submit-btn {
    background: linear-gradient(135deg, hsl(263, 70%, 48%), hsl(263, 60%, 55%));
    color: white;
    border: 2px solid transparent;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.trial-submit-btn:hover {
    background: white;
    color: hsl(263, 70%, 48%);
    border-color: hsl(263, 70%, 48%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.trial-submit-btn:active {
    transform: translateY(0);
}