/* Global Styles */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
    margin-bottom: 30px;
}

.site-header {
    position: relative;
}

.share-actions {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.share-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.share-btn:hover {
    background-color: #43a047;
}

@media (max-width: 600px) {
    .share-actions {
        position: static;
        margin-top: 10px;
        justify-content: flex-start;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.contact-info {
    text-align: right;
}

.contact-info p {
    margin: 5px 0;
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #777;
    cursor: pointer;
}

.step.active {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.step.completed {
    background-color: #8bc34a;
    color: white;
}

/* Step Content Styles */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Form Section Styles */
.form-section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    margin-bottom: 15px;
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    height: 100px;
    resize: vertical;
}

/* Service Type Options Styles */
.service-type-options,
.area-options,
.frequency-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-option,
.area-option,
.frequency-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.service-option:hover,
.area-option:hover,
.frequency-option:hover {
    border-color: #4CAF50;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-option.selected,
.area-option.selected,
.frequency-option.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.service-option img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.service-option h3,
.area-option h3,
.frequency-option h3 {
    margin: 10px 0;
    color: #4CAF50;
}

/* Service Item Styles */
.service-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.service-item .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.remove-btn {
    background-color: #ff5252;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    height: 42px;
}

.remove-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Total Section Styles */
.total-section {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
}

.total-final {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-weight: bold;
    font-size: 1.2em;
    color: #4CAF50;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background-color: #0b7dda;
}

.prev-step {
    background-color: #f1f1f1;
    color: #333;
}

.prev-step:hover {
    background-color: #ddd;
}

.next-step {
    min-width: 100px;
}

.btn:hover {
    opacity: 0.9;
}

/* Custom Pricing Styles */
.custom-pricing .form-section-sub {
    margin-top: 10px;
}
.custom-pricing .tips {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}
.extra-price {
    width: 160px;
    margin-left: 10px;
}
.additional-fees-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.fee-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.fee-row input[type="text"] {
    flex: 1;
    min-width: 120px;
}
.fee-row input[type="number"] {
    width: 180px;
}
.remove-fee {
    background-color: #ff5252;
    color: #fff;
}

/* Custom Price Box */
.custom-price-box {
    margin-top: 16px;
    padding: 16px;
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 6px;
}
.custom-price-box h3 {
    margin: 0 0 10px 0;
    color: #ff8f00;
    font-size: 16px;
    text-align: left;
}
.custom-price-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
.custom-price-controls input[type="number"] {
    max-width: 200px;
}
.custom-price-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn-small {
    padding: 6px 10px;
    font-size: 12px;
}
.custom-price-hint {
    color: #777;
    font-size: 12px;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-type-options,
    .area-options,
    .frequency-options {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
    }
    
    .service-item .form-group {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .step-indicator {
        flex-direction: column;
        align-items: center;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .step {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
}