* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 橫幅樣式 */
.banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
}

/* SVG 區域樣式 */
.svg-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
}

.svg-section svg {
    max-width: 100%;
    height: auto;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(38, 70, 83, 0.2);
}

/* Fee Plans */
.fee-plans {
    margin-bottom: 25px;
}

.fee-plans h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #264653;
    font-size: 2rem;
    font-weight: bold;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.plan-card {
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: #264653;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.plan-card.lite {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.95);
}

.plan-card.premium {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.95);
}

.plan-card.other {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.95);
}

.plan-header {
    text-align: center;
    margin-bottom: 15px;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #E76F51;
    font-weight: bold;
    text-align: center;
}

.plan-header p {
    color: #264653;
    font-size: 0.9rem;
    text-align: center;
}

.plan-pricing .price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.price-section {
    margin-bottom: 10px;
}

.price-label {
    font-weight: bold;
    color: #264653;
    margin-bottom: 8px;
    text-align: center;
    font-size: 1.1rem;
}

.price-item {
    flex: 0 1 auto;
    text-align: center;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70px;
}

.price-type {
    display: block;
    font-size: 0.9rem;
    color: #264653;
    margin-bottom: 8px;
    line-height: 1.2;
    text-align: center;
}

.price-type small {
    font-size: 0.7rem;
    color: #666;
    display: block;
    text-align: center;
}

.price-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #E76F51;
    margin-top: auto;
    text-align: center;
}

.price-row.main-price .price-value {
    font-size: 1.4rem;
    color: #264653;
    background: rgba(244, 162, 97, 0.2);
    padding: 8px 5px;
    border-radius: 5px;
    margin-top: auto;
}

.plan-pricing hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #E76F51;
}

/* Discount Info */
.discount-info {
    text-align: center;
}

.discount-item {
    margin-bottom: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.1);
}

.discount-item h4 {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #264653;
}

.discount {
    font-size: 1.4rem;
    font-weight: bold;
    color: #E76F51;
}

/* Fee Calculator */
.fee-calculator h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #264653;
    font-size: 2rem;
    font-weight: bold;
}

.fee-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #264653;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #264653;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #264653;
    background: white;
    box-shadow: 0 0 8px rgba(38, 70, 83, 0.5);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8rem;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #E76F51 0%, #F4A261 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #F4A261 0%, #E76F51 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 111, 81, 0.4);
}

/* Result Section */
.result-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.result-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #264653;
    font-size: 2rem;
    font-weight: bold;
}

.result-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.result-info,
.payment-info {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #264653;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.result-info h3,
.payment-info h3 {
    margin-bottom: 15px;
    color: #E76F51;
    border-bottom: 3px solid #F4A261;
    padding-bottom: 8px;
    font-size: 1.3rem;
}

.bank-info {
    background: rgba(244, 162, 97, 0.2);
    border: 2px solid #F4A261;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bank-info p {
    margin-bottom: 5px;
    color: #264653;
}

.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

.download-btn,
.reset-btn {
    padding: 12px 30px;
    margin: 0 10px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: #E76F51;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

.reset-btn {
    background: #264653;
    color: white;
    box-shadow: 0 4px 12px rgba(38, 70, 83, 0.3);
}

.download-btn:hover,
.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 111, 81, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 25px;
    color: #264653;
    padding: 15px;
}

/* Add some additional styling for final amount */
.final-amount {
    font-size: 1.8rem !important;
    color: #E76F51 !important;
    font-weight: bold !important;
}

.result-item.total {
    background: rgba(244, 162, 97, 0.2);
    border: 1px solid #F4A261;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.2);
}

.result-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(231, 111, 81, 0.2);
    color: #264653;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .svg-section {
        padding: 10px;
        margin-bottom: 30px;
    }
    
    .svg-section svg {
        border-radius: 10px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .price-item {
        padding: 4px;
    }
    
    .price-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .fee-plans h2,
    .fee-calculator h2 {
        font-size: 1.5rem;
    }
    
    .svg-section svg {
        height: 120px;
    }
    
    .price-row {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .price-item {
        border-bottom: 1px solid rgba(231, 111, 81, 0.3);
        padding: 15px;
        text-align: center;
        width: 100%;
        max-width: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .price-type {
        text-align: center;
        margin-bottom: 8px;
    }
    
    .price-type small {
        text-align: center;
        display: block;
    }
    
    .price-value {
        text-align: center;
    }
    
    .plan-header {
        text-align: center;
    }
    
    .plan-header h3 {
        text-align: center;
    }
    
    .price-label {
        text-align: center;
    }
}

/* Animation for form appearance */
.fee-form {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}