* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.appointment-widget {
    width: 100%;
    margin: 0 0 10px;
    padding: 15px;
    background: #495eaa;
}

.widget-title {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Autocomplete Input Styling */
.autocomplete-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    background: white;
    color: #333;
    cursor: text;
    transition: all 0.3s ease;
}

.autocomplete-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.autocomplete-input:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.autocomplete-input::placeholder {
    color: #999;
}

/* Dropdown Liste */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

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

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-item.active {
    background: #667eea;
    color: white;
}

.autocomplete-item.no-results {
    color: #999;
    cursor: default;
    text-align: center;
}

.autocomplete-item.no-results:hover {
    background: white;
}

.info-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 600;
}

.download-button {
    width: 100%;
    padding: 14px 20px;
    margin-top: 5px;
    background: #70be45;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-button:hover {
    color: white;
    background: #70be45;
}

.download-button.show {
    display: flex;
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    background: white;
    display: none;
    animation: fadeIn 0.5s ease;
}

.result-box.show {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-label {
    color: #4c56a1;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-date {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-info {
    color: #666;
    font-size: 14px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.ical-info-box {
    margin-top: 32px;
    margin-bottom: 12px;
    background: #f0f9ff;
    padding: 18px 20px 12px 18px;
    color: #1e293b;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
    display: none;
}

.ical-info-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.ical-info-box li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.ical-info-box code {
    background: #e0e7ef;
    padding: 2px 6px;
    font-size: 13px;
    color: #2563eb;
}

.ical-info-footnote {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}