.dfc-calculator-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dfc-calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Map Section */
.dfc-map-section {
    position: relative;
    min-height: 600px;
}

#dfc-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Form Section */
.dfc-form-section {
    padding: 40px;
}

.dfc-form-section h2 {
    margin: 0 0 30px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Location Inputs */
.dfc-location-inputs {
    margin-bottom: 30px;
}

.dfc-input-group {
    margin-bottom: 20px;
}

.dfc-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.dfc-input-group label svg {
    color: #0066ff;
}

.dfc-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.dfc-input-group input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

/* Fleet Selection */
.dfc-fleet-selection {
    margin: 30px 0;
}

.dfc-fleet-selection h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.dfc-fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.dfc-fleet-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e1e4e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.dfc-fleet-card:hover {
    border-color: #0066ff;
    box-shadow: 0 4px 12px rgba(0,102,255,0.15);
    transform: translateY(-2px);
}

.dfc-fleet-card.selected {
    border-color: #0066ff;
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(0,102,255,0.2);
}

.dfc-fleet-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fa;
    border-radius: 8px;
    overflow: hidden;
}

.dfc-fleet-card.selected .dfc-fleet-icon {
    background: #e6f2ff;
}

/* Custom uploaded icon image */
.dfc-fleet-icon img.dfc-custom-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.dfc-fleet-info {
    flex: 1;
}

.dfc-fleet-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.dfc-fleet-rate {
    margin: 0;
    font-size: 13px;
    color: #0066ff;
    font-weight: 600;
}

/* Calculate Button */
.dfc-btn-primary {
    width: 100%;
    padding: 16px;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dfc-btn-primary:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,255,0.3);
}

.dfc-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Results */
#dfc-results {
    margin-top: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dfc-result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    color: #fff;
}

.dfc-result-card h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
}

.dfc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.dfc-result-row:last-child {
    border-bottom: none;
}

.dfc-label {
    font-weight: 500;
    opacity: 0.9;
}

.dfc-value {
    font-weight: 700;
    font-size: 16px;
}

.dfc-discount {
    color: #ffeb3b;
}

.dfc-result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

.dfc-result-total .dfc-label {
    font-size: 18px;
    font-weight: 700;
}

.dfc-result-total .dfc-value {
    font-size: 28px;
    font-weight: 800;
}

/* Loading */
#dfc-loading {
    text-align: center;
    padding: 40px;
}

.dfc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#dfc-loading p {
    color: #666;
    font-size: 16px;
}

/* Error */
.dfc-error {
    background: #fee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    color: #c62828;
}

/* Responsive */
@media (max-width: 992px) {
    .dfc-calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .dfc-map-section {
        order: 2;
    }
    
    .dfc-form-section {
        order: 1;
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .dfc-fleet-grid {
        grid-template-columns: 1fr;
    }
    
    .dfc-form-section {
        padding: 20px;
    }
    
    .dfc-form-section h2 {
        font-size: 24px;
    }
    
    .dfc-result-card {
        padding: 20px;
    }
}

/* Booking Modal */
.dfc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.dfc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.dfc-modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: max-width 0.3s ease;
}

/* No need for wider modal anymore - using popup window */

.dfc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dfc-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.dfc-modal-content h2 {
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.dfc-booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.dfc-booking-summary h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dfc-payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.dfc-payment-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.dfc-payment-notice strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.dfc-payment-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.dfc-notice-info {
    background: #e6f2ff;
    border: 1px solid #0066ff;
    color: #004a99;
}

.dfc-notice-info svg {
    stroke: #0066ff;
}

.dfc-notice-warning {
    background: #fff7e6;
    border: 1px solid #ff9800;
    color: #cc7a00;
}

.dfc-notice-warning svg {
    stroke: #ff9800;
}

.dfc-success-icon {
    margin: 0 auto;
    width: 80px;
    height: 80px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.dfc-summary-row {
    padding: 8px 0;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
}

.dfc-summary-row:last-child {
    border-bottom: none;
    font-size: 18px;
    font-weight: 700;
    color: #0066ff;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #e1e4e8;
}

.dfc-form-fields {
    margin: 20px 0;
}

.dfc-field-group {
    margin-bottom: 20px;
}

.dfc-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dfc-field-group input,
.dfc-field-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dfc-field-group input:focus,
.dfc-field-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.dfc-field-group textarea {
    resize: vertical;
    min-height: 80px;
}

.dfc-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.dfc-btn-secondary {
    flex: 1;
    padding: 14px;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dfc-btn-secondary:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.dfc-modal-actions .dfc-btn-primary {
    flex: 2;
}

.dfc-modal-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    margin-top: 15px;
    background: #fee;
    border: 1px solid #f44336;
    border-radius: 8px;
    color: #c62828;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.dfc-modal-error svg {
    flex-shrink: 0;
    stroke: #f44336;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .dfc-modal-content {
        margin: 20px;
        padding: 25px;
        max-height: 95vh;
    }
    
    .dfc-modal-actions {
        flex-direction: column;
    }
    
    .dfc-modal-actions .dfc-btn-primary,
    .dfc-btn-secondary {
        flex: 1;
        width: 100%;
    }
}
