/* ========================================
   LANYARD CONFIGURATOR - MODERNE STYLES
   Anpassbar für dein Theme
   ======================================== */

/* CSS Variablen - Hier kannst du Farben und Abstände anpassen */
:root {
    --lc-primary-color: #339E35;
    --lc-primary-hover: #181818;
    --lc-primary-light: #F1F1F1;
    --lc-text-color: #181818;
    --lc-text-light: #808080;
    --lc-border-color: #F1F1F1;
    --lc-background: #ffffff;
    --lc-background-alt: #f9fafb;
    --lc-success-color: #339E35;
    --lc-error-color: #ef4444;
    --lc-disabled-color: #9ca3af;
    
    --lc-font-size-base: 16px;
    --lc-font-size-small: 14px;
    --lc-font-size-large: 18px;
    
    --lc-spacing-xs: 8px;
    --lc-spacing-sm: 12px;
    --lc-spacing-md: 20px;
    --lc-spacing-lg: 30px;
    --lc-spacing-xl: 40px;
    
    --lc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --lc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --lc-radius: 0px;
}

/* Reset für Shortcode-Umgebung */
.lanyard-configurator {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-size: var(--lc-font-size-base);
    color: var(--lc-text-color);
    line-height: 1.6;
}

.lanyard-configurator *,
.lanyard-configurator *::before,
.lanyard-configurator *::after {
    box-sizing: border-box;
}

/* Progress Bar */
.lc-progress {
    margin-bottom: var(--lc-spacing-xl);
}

.lc-progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--lc-background-alt);
    border-radius: 0px;
    position: relative;
    overflow: hidden;
}

.lc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lc-primary-color), var(--lc-primary-hover));
    border-radius: 0px;
    transition: width 0.4s ease;
    width: 33.33%;
}

.lc-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: var(--lc-spacing-lg);
    gap: var(--lc-spacing-sm);
}

.lc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    color: var(--lc-disabled-color);
    transition: all 0.3s ease;
}

.lc-step.active {
    color: var(--lc-primary-color);
}

.lc-step-number {
    width: 40px;
    height: 40px;
    border: 3px solid currentColor;
    border-radius: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: var(--lc-spacing-sm);
    background-color: var(--lc-background);
    transition: all 0.3s ease;
}

.lc-step.active .lc-step-number {
    background: linear-gradient(135deg, var(--lc-primary-color), var(--lc-primary-hover));
    color: var(--lc-background);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lc-step-label {
    font-size: var(--lc-font-size-small);
    text-align: center;
    font-weight: 500;
}

/* Form Container */
.lc-form {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Step Content */
.lc-step-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.lc-step-content.active {
    display: block;
}

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

.lc-step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--lc-spacing-sm);
    color: var(--lc-text-color);
}

.lc-description {
    margin-bottom: var(--lc-spacing-lg);
    color: var(--lc-text-light);
    font-size: var(--lc-font-size-base);
}

.lc-contact-info {
    padding: var(--lc-spacing-md);
    background: black;
    margin-bottom: var(--lc-spacing-lg);
    text-align: center;
    border-radius: var(--lc-radius);
    font-weight: 500;
    color: white;
}

/* Form Groups */
.lc-form-group {
    margin-bottom: var(--lc-spacing-xl);
}

.lc-label {
    display: block;
    margin-bottom: var(--lc-spacing-sm);
    font-weight: 600;
    color: var(--lc-text-color);
    font-size: var(--lc-font-size-base);
}

.lc-hint {
    display: block;
    margin-top: var(--lc-spacing-xs);
    font-size: var(--lc-font-size-small);
    color: var(--lc-text-light);
}

.lc-required {
    font-size: var(--lc-font-size-small);
    color: var(--lc-text-light);
    margin-bottom: var(--lc-spacing-md);
}

/* Image Grid Selection */
.lc-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lc-spacing-md);
    margin-top: var(--lc-spacing-sm);
}

.lc-image-option {
    position: relative;
    cursor: pointer;
    border-radius: var(--lc-radius);
    overflow: hidden;
    background: var(--lc-background);
    border: 3px solid var(--lc-border-color);
    transition: all 0.3s ease;
}

.lc-image-option:hover {
    border-color: var(--lc-primary-color);
    transform: translateY(-4px);
    box-shadow: var(--lc-shadow-lg);
}

.lc-image-option.selected {
    border-color: var(--lc-primary-color);
    box-shadow: 0 0 0 4px var(--lc-primary-light);
}

.lc-image-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lc-image-option-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    background-color: white;
    padding: 10px;
}

.lc-image-option-label {
    padding: var(--lc-spacing-sm);
    text-align: center;
    font-weight: 500;
    font-size: var(--lc-font-size-small);
    background: var(--lc-background);
    color: var(--lc-text-color);
}

.lc-image-option.selected .lc-image-option-label {
    background: var(--lc-primary-color);
    color: white;
}

.lc-image-option-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--lc-primary-color);
    border-radius: 0%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: var(--lc-shadow-md);
}

.lc-image-option.selected .lc-image-option-check {
    display: flex;
}

/* "Keine" Option - Red X Icon */
.lc-none-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    aspect-ratio: 1;
    font-size: 56px;
    font-weight: bold;
    color: #dc2626;
    background-color: #fef2f2;
    box-sizing: border-box;
}

.lc-option-none:hover .lc-none-icon {
    background-color: #fee2e2;
}

.lc-option-none.selected .lc-none-icon {
    background-color: #fecaca;
    color: #b91c1c;
}

/* Two Column Layout */
.lc-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--lc-spacing-sm);
}

@media (max-width: 768px) {
    .lc-two-columns {
        grid-template-columns: 1fr;
    }
}

/* Input Fields */
.lc-input,
.lc-select,
.lc-textarea {
    width: 100%;
    padding: var(--lc-spacing-md);
    border: 2px solid var(--lc-border-color);
    border-radius: var(--lc-radius);
    background-color: var(--lc-background);
    font-size: var(--lc-font-size-base);
    color: var(--lc-text-color);
    transition: all 0.3s ease;
}

.lc-input:focus,
.lc-select:focus,
.lc-textarea:focus {
    outline: none;
    border-color: var(--lc-primary-color);
    box-shadow: 0 0 0 4px var(--lc-primary-light);
}

.lc-input:disabled,
.lc-select:disabled,
.lc-textarea:disabled {
    background-color: var(--lc-background-alt);
    cursor: not-allowed;
}

.lc-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Quantity Control */
.lc-quantity-control {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: var(--lc-spacing-md);
    align-items: center;
}

.lc-slider-wrapper {
    position: relative;
}

.lc-slider {
    width: 100%;
    height: 8px;
    background: var(--lc-background-alt);
    border-radius: 0px;
    outline: none;
    appearance: none;
}

.lc-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--lc-primary-color), var(--lc-primary-hover));
    border-radius: 0%;
    cursor: pointer;
    box-shadow: var(--lc-shadow-md);
    transition: all 0.2s ease;
}

.lc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.lc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--lc-primary-color), var(--lc-primary-hover));
    border-radius: 0%;
    cursor: pointer;
    border: none;
    box-shadow: var(--lc-shadow-md);
    transition: all 0.2s ease;
}

.lc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* File Upload */
.lc-file-upload {
    position: relative;
    border: 3px dashed var(--lc-border-color);
    background-color: var(--lc-background-alt);
    padding: var(--lc-spacing-xl);
    text-align: center;
    border-radius: var(--lc-radius);
    transition: all 0.3s ease;
}

.lc-file-upload:hover {
    border-color: var(--lc-primary-color);
    background-color: var(--lc-primary-light);
}

.lc-file-upload.dragover {
    border-color: var(--lc-primary-color);
    background: linear-gradient(135deg, var(--lc-primary-light), #fef3c7);
    transform: scale(1.02);
}

.lc-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.lc-file-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lc-spacing-sm);
}

.lc-file-icon {
    font-size: 48px;
}

.lc-file-text {
    color: var(--lc-text-color);
    font-weight: 500;
}

.lc-file-list {
    margin-top: var(--lc-spacing-md);
}

.lc-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--lc-spacing-md);
    background-color: var(--lc-background);
    border: 2px solid var(--lc-border-color);
    border-radius: var(--lc-radius);
    margin-bottom: var(--lc-spacing-sm);
    transition: all 0.3s ease;
}

.lc-file-item:hover {
    border-color: var(--lc-primary-color);
    box-shadow: var(--lc-shadow-sm);
}

.lc-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.lc-file-remove {
    background: var(--lc-error-color);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1;
    border-radius: 0px;
    transition: all 0.2s ease;
}

.lc-file-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Buttons */
.lc-button-group {
    display: flex;
    gap: var(--lc-spacing-md);
    margin-top: var(--lc-spacing-xl);
        border-radius: 0px !important;
        border-width: 0px !important; 
}

.lc-btn {
    padding: var(--lc-spacing-md) var(--lc-spacing-xl);
    border: none;
    background: linear-gradient(135deg, var(--lc-primary-color), var(--lc-primary-hover));
    color: white;
    font-size: var(--lc-font-size-base);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--lc-radius);
    transition: all 0.3s ease;
    box-shadow: var(--lc-shadow-md);
}

.lc-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--lc-shadow-lg);
}

.lc-btn:active {
    transform: translateY(0);
}

.lc-btn:disabled {
    background: var(--lc-disabled-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lc-btn-prev {
    background: var(--lc-background);
    color: var(--lc-text-color);
    box-shadow: none;
                border-radius: 0px !important;
        border-width: 0px !important; 
}

.lc-btn-prev:hover {
    background: var(--lc-background-alt);
    border-color: var(--lc-primary-color);
}

.lc-btn-next {
    margin-left: auto;
                border-radius: 0px !important;
        border-width: 0px !important; 
        background: var(--lc-background-alt);
}

.lc-btn-submit {
    margin-left: auto;
        border-radius: 0px !important;
        border-width: 0px !important; 
        background: var(--lc-background-alt);
}

.lc-btn-submit:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Messages */
.lc-message {
    padding: var(--lc-spacing-md);
    margin-top: var(--lc-spacing-md);
    border-radius: var(--lc-radius);
    display: none;
    font-weight: 500;
}

.lc-message.success {
    display: block;
    background-color: #d1fae5;
    border: 2px solid var(--lc-success-color);
    color: #065f46;
}

.lc-message.error {
    display: block;
    background-color: #fee2e2;
    border: 2px solid var(--lc-error-color);
    color: #991b1b;
}

/* Success Screen */
.lc-success-screen {
    text-align: center;
    padding: 60px 30px;
}

.lc-success-screen-icon {
    width: 80px;
    height: 80px;
    background: var(--lc-success-color);
    color: white;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.lc-success-screen h2 {
    color: var(--lc-text-color);
    margin-bottom: 10px;
}

.lc-success-screen p {
    color: var(--lc-text-light);
    font-size: var(--lc-font-size-base);
    margin-bottom: 5px;
}

/* Checkbox Styles */
.lc-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--lc-spacing-sm);
    cursor: pointer;
    padding: var(--lc-spacing-md);
    background: var(--lc-background-alt);
    border-radius: var(--lc-radius);
    border: 2px solid var(--lc-border-color);
    transition: all 0.3s ease;
}

.lc-checkbox-wrapper:hover {
    background: var(--lc-background);
    border-color: var(--lc-primary-color);
}

.lc-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: var(--lc-primary-color);
    margin-top: 2px;
}

.lc-checkbox-label {
    font-size: var(--lc-font-size-base);
    color: var(--lc-text-color);
    line-height: 1.5;
    cursor: pointer;
}

.lc-link {
    color: var(--lc-primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.lc-link:hover {
    color: var(--lc-primary-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .lc-progress-steps {
        flex-wrap: wrap;
    }
    
    .lc-step {
        flex-basis: 50%;
        margin-bottom: var(--lc-spacing-md);
    }
    
    .lc-step-label {
        font-size: 12px;
    }
    
    .lc-step-number {
        width: 36px;
        height: 36px;
    }
    
    .lc-image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--lc-spacing-sm);
    }
    
    .lc-quantity-control {
        grid-template-columns: 1fr;
    }
    
    .lc-button-group {
        flex-direction: column;
    }
    
    .lc-btn-next,
    .lc-btn-submit {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --lc-font-size-base: 14px;
    }
    
    .lc-step-title {
        font-size: 24px;
    }
    
    .lc-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Text Options Grid (for options without images) */
.lc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--lc-spacing-sm);
    margin-top: var(--lc-spacing-sm);
}

.lc-text-option {
    position: relative;
    cursor: pointer;
    border-radius: var(--lc-radius);
    background: var(--lc-background);
    border: 3px solid var(--lc-border-color);
    transition: all 0.3s ease;
    padding: var(--lc-spacing-md);
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-text-option:hover {
    border-color: var(--lc-primary-color);
    transform: translateY(-2px);
    box-shadow: var(--lc-shadow-md);
}

.lc-text-option.selected {
    border-color: var(--lc-primary-color);
    background-color: var(--lc-primary-color);
    color: white;
}

.lc-text-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lc-text-option-label {
    font-weight: 500;
    font-size: var(--lc-font-size-small);
}

.lc-text-option.selected .lc-text-option-label {
    color: white;
}

.lc-text-option-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--lc-primary-color);
    font-weight: bold;
    font-size: 12px;
}

.lc-text-option.selected .lc-text-option-check {
    display: flex;
}