/*
 * Building Management Terpadu - Frontend Styles
 */

/* General */
.bmt-service-catalog,
.bmt-booking-form,
.bmt-order-tracker {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bmt-form-subtitle {
    color: #666;
    margin-bottom: 25px;
}

/* Buttons */
.bmt-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bmt-btn-primary {
    background: linear-gradient(135deg, #428bca, #5bc0de);
    color: #fff;
}

.bmt-btn-primary:hover {
    background: linear-gradient(135deg, #3071a9, #31b0d5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 139, 202, 0.3);
}

.bmt-btn-secondary {
    background: #f8f9fa;
    color: #428bca;
    border: 1px solid #428bca;
}

.bmt-btn-secondary:hover {
    background: #428bca;
    color: #fff;
}

.bmt-btn-large {
    padding: 14px 35px;
    font-size: 16px;
}

/* Service Catalog */
.bmt-category-section {
    margin-bottom: 50px;
}

.bmt-category-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #428bca;
    display: inline-block;
}

.bmt-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.bmt-service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.bmt-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bmt-service-card.bmt-popular {
    border: 2px solid #f0ad4e;
}

.bmt-popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0ad4e;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.bmt-service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.bmt-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bmt-service-content {
    padding: 20px;
}

.bmt-service-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.bmt-service-price {
    margin-bottom: 8px;
}

.bmt-price-label {
    font-size: 12px;
    color: #888;
    display: block;
}

.bmt-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #428bca;
}

.bmt-service-duration {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}

.bmt-service-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.bmt-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.bmt-service-features li {
    padding: 5px 0;
    font-size: 13px;
    color: #555;
}

.bmt-check {
    color: #5cb85c;
    font-weight: bold;
    margin-right: 8px;
}

.bmt-more-features {
    color: #428bca;
    font-style: italic;
}

.bmt-service-actions {
    display: flex;
    gap: 10px;
}

.bmt-service-actions .bmt-btn {
    flex: 1;
}

/* Booking Form */
.bmt-booking-form h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.bmt-form-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bmt-form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #428bca;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bmt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.bmt-form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.bmt-required {
    color: #d9534f;
}

.bmt-form-group input[type="text"],
.bmt-form-group input[type="email"],
.bmt-form-group input[type="tel"],
.bmt-form-group input[type="number"],
.bmt-form-group input[type="date"],
.bmt-form-group input[type="time"],
.bmt-form-group select,
.bmt-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.bmt-form-group input:focus,
.bmt-form-group select:focus,
.bmt-form-group textarea:focus {
    outline: none;
    border-color: #428bca;
    box-shadow: 0 0 0 3px rgba(66, 139, 202, 0.1);
}

.bmt-price-estimate {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #428bca;
}

.bmt-price-display {
    text-align: center;
    padding: 15px 0;
}

.bmt-price-display .bmt-price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.bmt-price-display .bmt-price-value {
    font-size: 32px;
    font-weight: 700;
    color: #428bca;
}

.bmt-price-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 0;
}

.bmt-form-actions {
    text-align: center;
    margin-top: 25px;
}

.bmt-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.bmt-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bmt-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Order Tracker */
.bmt-tracker-form {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.bmt-tracker-result {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bmt-order-details h4 {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #333;
}

.bmt-order-status-big {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #428bca, #5bc0de);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 25px;
}

.bmt-order-status-big .bmt-status-label {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.bmt-order-status-big .bmt-status-desc {
    margin: 0;
    opacity: 0.9;
}

/* Timeline */
.bmt-timeline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.bmt-timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.bmt-timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.bmt-timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
}

.bmt-timeline-item.bmt-active .bmt-timeline-dot {
    background: #428bca;
    box-shadow: 0 0 0 2px #428bca;
}

.bmt-timeline-item.bmt-current .bmt-timeline-dot {
    background: #5cb85c;
    box-shadow: 0 0 0 2px #5cb85c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 2px #5cb85c; }
    50% { box-shadow: 0 0 0 6px rgba(92, 184, 92, 0.3); }
    100% { box-shadow: 0 0 0 2px #5cb85c; }
}

.bmt-timeline-label {
    font-size: 12px;
    color: #888;
}

.bmt-timeline-item.bmt-active .bmt-timeline-label {
    color: #428bca;
    font-weight: 600;
}

.bmt-timeline-item.bmt-current .bmt-timeline-label {
    color: #5cb85c;
    font-weight: 700;
}

.bmt-order-table {
    width: 100%;
    border-collapse: collapse;
}

.bmt-order-table th {
    text-align: left;
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    width: 30%;
    font-weight: 600;
}

.bmt-order-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* No Services */
.bmt-no-services {
    text-align: center;
    padding: 50px;
    color: #888;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .bmt-form-row {
        grid-template-columns: 1fr;
    }
    
    .bmt-services-grid {
        grid-template-columns: 1fr;
    }
    
    .bmt-timeline {
        flex-wrap: wrap;
    }
    
    .bmt-timeline-item {
        flex: 0 0 50%;
        margin-bottom: 15px;
    }
    
    .bmt-timeline::before {
        display: none;
    }
}
