/* Main container */
#huolto-app {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Process steps */
.process-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.process-steps .step {
    flex: 1;
    min-width: 180px;
    padding: 10px 12px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
}

.process-steps .step.active {
    background: linear-gradient(90deg, #00b894, #0984e3);
    color: #fff;
}

/* Services grid layout */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service items */
.service-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.service-item:hover {
    background: #f9f9f9;
    border-color: #d0d0d0;
}

.service-item label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.service-item input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
}

.service-details {
    flex-grow: 1;
}

.service-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.service-desc {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    margin-left: 28px;
    line-height: 1.4;
}

.service-price {
    font-weight: 700;
    color: #0984e3;
    text-align: right;
    min-width: 80px;
    font-size: 15px;
}

/* Summary box */
.summary-box {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: fit-content;
}

.summary-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

#selected-list {
    min-height: 100px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.totals {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.totals div {
    margin-bottom: 8px;
}

.total {
    font-weight: 800;
    font-size: 16px;
    margin-top: 10px;
    color: #333;
}

/* Calendar styling */
#calendar {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.fc {
    font-family: inherit;
}

.fc-header-toolbar {
    padding: 10px;
    margin-bottom: 0 !important;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.fc-toolbar-title {
    font-size: 18px;
    font-weight: 600;
}

.fc-button {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    text-transform: capitalize;
    font-weight: normal;
    box-shadow: none !important;
}

.fc-button:hover {
    background: #e0e0e0 !important;
}

.fc-button-primary:not(:disabled).fc-button-active {
    background-color: #0984e3 !important;
    border-color: #0984e3 !important;
}

.fc-col-header-cell {
    background: #f5f5f5;
    padding: 8px 0;
    border-color: #e0e0e0 !important;
}

.fc-daygrid-day {
    border-color: #e0e0e0 !important;
}

.fc-daygrid-day-top {
    padding: 4px 6px;
}

.fc-daygrid-day-number {
    color: #333;
    font-weight: 500;
}

.fc-day-today {
    background-color: #f0f8ff !important;
}

.fc-timegrid-slot {
    height: 40px !important;
}

.fc-event {
    background-color: #0984e3;
    border-color: #0984e3;
}

/* Background events for allowed windows */
.fc .allowed-morning {
    background: rgba(0, 176, 80, 0.25);
    border: none;
}
.fc .allowed-evening {
    background: rgba(43, 108, 176, 0.25);
    border: none;
}

/* Selected times */
.selected-times {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.time-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Customer info */
.customer-info {
    margin: 20px 0;
}

.customer-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Pickup options */
.pickup-options {
    margin: 20px 0;
}

.pickup-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

#address-fields {
    margin-top: 15px;
}

#cust-address {
    margin-bottom: 10px;
}

.distance-result {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.distance-success {
    color: #0a6;
    font-weight: 600;
}

.error-message {
    color: #d63638;
    padding: 10px;
    background: #fff4f4;
    border: 1px solid #f3c9c9;
    border-radius: 4px;
}

/* Buttons */
.btn-primary {
    background: #0984e3 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0778c9 !important;
}

.btn-secondary {
    background: #e6e6e6 !important;
    color: #333 !important;
    border: none !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #d5d5d5 !important;
}

.btn-small {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

.action-buttons {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Loading message */
.loading-message {
    color: #666;
    font-style: italic;
    padding: 15px 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-steps .step {
        min-width: 120px;
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .service-item {
        padding: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
