/* Ekely Booking — Clean, Professional Styles */

.ekely-booking {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Steps indicator */
.ekely-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 2rem;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 6px;
}

.ekely-step {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #888;
    transition: all 0.3s ease;
    cursor: default;
}

.ekely-step.active {
    background: #2d5016;
    color: #fff;
    font-weight: 600;
}

.ekely-step.done {
    background: #e8f5e9;
    color: #2d5016;
}

.step-num {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    margin-right: 4px;
}

.ekely-step.active .step-num {
    background: rgba(255,255,255,0.3);
}

/* Panels */
.ekely-panel {
    animation: ekelyFadeIn 0.3s ease;
}

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

.ekely-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #1a1a1a;
}

/* Filters */
.ekely-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.ekely-input, .ekely-select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.ekely-input:focus, .ekely-select:focus {
    border-color: #2d5016;
    outline: none;
}

.ekely-filters .ekely-input {
    flex: 2;
    min-width: 180px;
}

.ekely-filters .ekely-select {
    flex: 1;
    min-width: 140px;
}

/* Tools grid */
.ekely-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.ekely-tool-card {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.ekely-tool-card:hover {
    border-color: #2d5016;
    box-shadow: 0 2px 12px rgba(45,80,22,0.1);
}

.ekely-tool-card.selected {
    border-color: #2d5016;
    background: #f0f7ec;
}

.ekely-tool-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    background: #2d5016;
    color: #fff;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.ekely-tool-brand {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ekely-tool-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.ekely-tool-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.ekely-tool-pricing {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.ekely-tool-price {
    font-weight: 700;
    color: #2d5016;
    font-size: 1.1rem;
}

.ekely-tool-deposit {
    font-size: 0.75rem;
    color: #999;
}

.ekely-tool-category {
    display: inline-block;
    font-size: 0.7rem;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    color: #666;
}

.ekely-tool-unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.ekely-tool-unavailable::after {
    content: 'Ikke tilgjengelig';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Selected summary */
.ekely-selected-summary {
    background: #f8faf6;
    border: 1px solid #d4e4cc;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 1.5rem;
}

.ekely-selected-summary h4 {
    margin: 0 0 10px 0;
    color: #2d5016;
}

.ekely-selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.ekely-selected-item:last-child {
    border-bottom: none;
}

.ekely-remove-tool {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
}

.ekely-remove-tool:hover {
    background: #ffebee;
    border-radius: 4px;
}

/* Date fields */
.ekely-date-row {
    display: flex;
    gap: 16px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ekely-date-field {
    flex: 1;
    min-width: 160px;
}

.ekely-date-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Price preview */
.ekely-price-preview {
    background: #f8faf6;
    border: 1px solid #d4e4cc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 1.5rem;
}

.ekely-price-preview h4 {
    margin: 0 0 12px 0;
    color: #2d5016;
}

.ekely-price-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.ekely-price-line:last-child {
    border-bottom: none;
}

.ekely-price-totals {
    border-top: 2px solid #2d5016;
    margin-top: 12px;
    padding-top: 12px;
}

.ekely-price-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.95rem;
}

.ekely-grand-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d5016;
    padding-top: 8px;
    border-top: 1px solid #d4e4cc;
    margin-top: 8px;
}

.ekely-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* Form fields */
.ekely-form-fields {
    display: grid;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.ekely-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.ekely-field textarea {
    resize: vertical;
}

/* Buttons */
.ekely-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ekely-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ekely-btn-primary {
    background: #2d5016;
    color: #fff;
}

.ekely-btn-primary:hover:not(:disabled) {
    background: #3a6b1e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,80,22,0.3);
}

.ekely-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.ekely-btn-secondary:hover {
    background: #e0e0e0;
}

.ekely-btn-large {
    padding: 16px 40px;
    font-size: 1.15rem;
}

.ekely-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1.5rem;
}

/* Confirmation */
.ekely-confirmation-summary {
    background: #f8faf6;
    border: 1px solid #d4e4cc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 1.5rem;
}

.ekely-conf-section {
    margin-bottom: 16px;
}

.ekely-conf-section:last-child {
    margin-bottom: 0;
}

.ekely-conf-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ekely-conf-value {
    font-weight: 500;
}

.ekely-vipps-info {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 1rem;
}

.ekely-vipps-info p {
    margin: 0 0 4px 0;
}

/* Success */
.ekely-success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: #2d5016;
    color: #fff;
    border-radius: 50%;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

#ekely-success {
    text-align: center;
}

.ekely-success-ref {
    background: #f0f7ec;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
}

/* Error */
.ekely-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    color: #c62828;
    font-size: 0.9rem;
}

/* Loading */
.ekely-loading {
    text-align: center;
    color: #888;
    padding: 40px;
}

/* Responsive */
@media (max-width: 600px) {
    .ekely-steps {
        flex-wrap: wrap;
    }
    .ekely-step {
        flex: 1 1 45%;
        font-size: 0.75rem;
    }
    .ekely-tools-grid {
        grid-template-columns: 1fr;
    }
    .ekely-date-row {
        flex-direction: column;
    }
    .ekely-filters {
        flex-direction: column;
    }
    .ekely-nav {
        flex-direction: column-reverse;
    }
}
