/* Abo Configurator Database-Driven Styles */

.abo-configurator-db {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    margin-bottom: 100px; /* Space for the fixed footer */
    border-radius: 12px;
    background-color: #f4f4f4;
}

/* Progress indicator */
.progress-indicator {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.configurator-title {
    font-size: 44px;
    color: #757575;
    margin-bottom: 40px;
    font-weight: 500;
    text-align: center;
}

.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.step-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.step-item.active {
    background-color: #a31a41;
    color: white;
    border-color: #a31a41;
}

.step-item.completed {
    background-color: #a31a41;
    color: white;
    border-color: #a31a41;
    cursor: pointer;
}

.step-item.completed:hover {
    background-color: #8a1635;
    transform: scale(1.1);
}

.step-connector {
    width: 60px;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
    margin: 0 5px;
}

.progress-labels {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    width: 100%;
}

.progress-label {
    font-size: 12px;
    color: #888;
    width: 110px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.progress-label.active {
    color: #a31a41;
    font-weight: bold;
}

/* Option icon styling */
.option-icon {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.option-item:hover .option-icon {
    transform: scale(1.05);
}

/* Step container */
.step-container {
    background-color: transparent;
    padding: 20px;
}

.step-title {
    color: #a31a41;
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 28px;
    text-align: center;
}

/* Options list */
.option-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.option-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    min-height: 200px;
    min-width: 240px;
}

.option-item:hover {
    border-color: #a31a41;
}

.option-item.selected {
    border-color: #a31a41;
    background-color: #fdf6f8;
}

.option-item.selected:before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #a31a41;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Selection animation */
.option-item.selecting {
    animation: selectPulse 0.3s ease-out;
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
        box-shadow: 0 0 20px rgba(163, 26, 65, 0.3);
    }
    100% {
        transform: scale(1);
    }
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 22px;
}

.option-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.option-price {
    font-weight: bold;
    color: #a31a41;
    font-size: 16px;
    margin-bottom: 15px;
}

.option-badge {
    display: inline-block;
    background-color: #a31a41;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 5px;
}

.option-select {
    width: 100%;
    padding: 8px 15px;
    background-color: #a31a41;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.15s ease;
    margin-top: 10px;
}

.option-select:hover {
    background-color: #8a1635;
}

.option-select:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Info box */
.info-box {
    background-color: #f0f0f0;
    border-left: 3px solid #a31a41;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

/* Gift options */
.gift-options {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.gift-options h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

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

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

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Summary styles */
.summary-box {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
}

.summary-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 20px;
    font-weight: 500;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #a31a41;
}

.summary-section ul {
    margin: 0;
    padding-left: 20px;
}

.summary-section li {
    margin-bottom: 5px;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.price {
    color: #a31a41;
    font-size: 20px;
}

.greeting-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.greeting-item h5 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

/* Fixed footer */
.configurator-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #e0e0e0;
    padding: 15px 20px;
    z-index: 100;
    border-top: 3px solid #FFF;
}

.configurator-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display {
    font-size: 18px;
    font-weight: bold;
    color: #a31a41;
}

.navigation-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.prev-step {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd !important;
    margin-right: 10px;
}

.prev-step:hover {
    background-color: #e0e0e0;
}

.next-step {
    background-color: #a31a41;
    color: white;
}

.next-step:hover {
    background-color: #8a1635;
}

.next-step:disabled {
    background-color: #d7d7d7;
    cursor: not-allowed;
}

/* Gift icon */
.gift-icon {
    width: 60px;
    height: 60px;
    background-image: url('../images/gift-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 10px auto;
}

/* Notification styles */
#ajax-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background-color: #a31a41;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.error {
    background-color: #e74c3c;
}

/* Media Selection Styles - Integrated with option-item styles */
.media-selection .step-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
    text-align: center;
}

/* Media-specific adjustments to option-item */
.media-item.option-item {
    min-width: 280px;
    max-width: 350px;
}

.media-item .option-content {
    width: 100%;
}

.media-item.discounted .option-price {
    position: relative;
}

.selection-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #a31a41;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media price styling - integrated with option styles */
.option-price {
    margin: 15px 0;
    min-height: 30px;
}

.option-price .original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 14px;
}

.option-price .discounted-price {
    color: #a31a41;
    font-weight: bold;
    font-size: 18px;
}

.option-price .discount-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.option-price .discount-hint {
    display: block;
    color: #4caf50;
    font-size: 12px;
    margin-top: 5px;
}

.option-price .price-display {
    color: #333;
    font-weight: bold;
    font-size: 18px;
}

.option-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 10px 0;
}

/* Media toggle button - uses option-select styles */
.media-toggle-btn.option-select {
    width: 100%;
}

.media-toggle-btn.option-select.selected {
    background: #666;
}

.media-toggle-btn.option-select.selected:hover {
    background: #555;
}


/* Option badge for DB version */
.option-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-item.option-item {
        min-width: 100%;
        max-width: 100%;
    }

    .option-item {
        min-height: 160px;
    }

    .progress-labels {
        display: none;
    }
    
    .progress-bar {
        margin-top: 0;
    }
    
    .step-item {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .step-connector {
        width: 40px;
        margin: 0 3px;
    }

    .configurator-footer {
        padding: 12px 15px;
    }

    .price-display {
        font-size: 16px;
        margin-bottom: 0;
    }

    .navigation-buttons {
        display: flex;
        gap: 10px;
    }

    .navigation-buttons button {
        padding: 8px 15px;
        font-size: 14px;
    }
}