/**
 * CoffeeClick Keuzehulp - Styling
 * Version: 1.0.3
 */

/* CSS Variables - CoffeeClick Huisstijl */

:root {
    --cc-gold: #B0873B;
    --cc-gold-hover: #9a7532;
    --cc-green: #5DAC2F;
    --cc-dark: #191919;
    --cc-gray: #717182;
    --cc-light: #FAF7F4;
    --cc-border: #e4e4e4;
}
/* Reset voor keuzehulp container */

#coffeeclick-keuzehulp-root * {
    box-sizing: border-box;
    font-family: "Poppins", serif;
}
/* Shortcode Button Styling */

.coffeeclick-keuzehulp-btn {
    background: var(--cc-gold);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
    display: inline-block;
}
.coffeeclick-keuzehulp-btn:hover {
    background: var(--cc-gold-hover);
}
/* Floating Button */

.cc-floating-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: linear-gradient(273deg, #61B02F 0.04%, #0B5E31 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(176, 135, 59, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    gap: 0.75rem;
    transition: all 0.3s ease;
    /*animation: slideUp 0.5s ease-out, pulse 2s ease-in-out infinite;*/
}
.cc-floating-btn:hover {
    background: linear-gradient(273deg, #61B02F 0.04%, #0B5E31 100%);
    color: white;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 50px rgba(176, 135, 59, 0.4);
}
.cc-floating-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.cc-floating-btn:hover svg {
    transform: rotate(12deg);
}
.cc-floating-btn svg path {
    fill: #fff;
}
button.selected svg path {
    stroke: #fff;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(176, 135, 59, 0.3);
    }
    50% {
        box-shadow: 0 15px 60px rgba(176, 135, 59, 0.5);
    }
}
/* Overlay */

.cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    /* Just below panel */
    display: none;
    animation: fadeIn 0.3s ease;
}
.cc-overlay.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Panel Container */

.cc-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    background: white;
    z-index: 99999;
    /* Updated safe Z-index */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}
.cc-panel.active {
    transform: translateX(0);
}
/* Panel Header */

.cc-panel-header {
    padding: 32px 24px 24px;
    border-bottom: 2px solid var(--cc-border);
    background: white;
    flex-shrink: 0;
}
.cc-panel-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.cc-icon-container {
    width: 40px;
    height: 40px;
    background: rgba(176, 135, 59, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cc-icon-container svg {
    width: 20px;
    height: 20px;
    color: var(--cc-gold);
}
.cc-panel-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--cc-dark);
    margin: 0;
}
.cc-panel-subtitle {
    font-size: 16px;
    color: var(--cc-gray);
    margin: 0;
    line-height: 1.5;
}
.cc-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--cc-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    padding: 0;
}
.cc-close-btn:hover {
    background: var(--cc-border);
    color: var(--cc-dark);
}
/* Panel Content */

.cc-panel-content {
    background-color: #FAF7F4;
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: thin;
    /* Firefox Support */
    scrollbar-color: var(--cc-border) transparent;
    /* Firefox Support */
}
.cc-panel-content::-webkit-scrollbar {
    width: 8px;
}
.cc-panel-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.cc-panel-content::-webkit-scrollbar-thumb {
    background: var(--cc-border);
    border-radius: 4px;
}
.cc-panel-content::-webkit-scrollbar-thumb:hover {
    background: var(--cc-gray);
}
/* Progress Bar */

.cc-progress-container {
    margin-bottom: 32px;
}
.cc-progress-text {
    font-size: 14px;
    color: var(--cc-gray);
    margin-bottom: 8px;
    font-weight: 500;
    color: #B0873B;
}
.cc-progress-bars {
    display: flex;
    gap: 4px;
    height: 8px;
}
.cc-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: all 0.3s ease;
}
.cc-progress-bar.active {
    background: var(--cc-gold);
    flex: 1;
}
.cc-progress-bar.inactive {
    background: var(--cc-border);
    width: 8px;
}
/* Question Section */

.cc-question-section {
    margin-bottom: 24px;
}
.cc-question-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--cc-dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.cc-question-subtitle {
    font-size: 16px;
    color: var(--cc-gray);
    margin: 0;
    line-height: 1.5;
}
/* Option Cards (with images) */

.cc-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}
.cc-option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 2px solid var(--cc-border);
    border-radius: 12px;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
}
.cc-option-card:hover {
    border-color: rgba(176, 135, 59, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.cc-option-card.selected {
    border-color: var(--cc-gold);
    background: white;
    box-shadow: 0 4px 12px rgba(176, 135, 59, 0.15);
    transform: scale(1.01);
}
.cc-option-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--cc-light);
}
.cc-option-image-overlay {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 80px;
    height: 80px;
    background: rgba(176, 135, 59, 0.2);
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
}
.cc-option-card.selected .cc-option-image-overlay {
    display: flex;
}
.cc-checkmark {
    width: 32px;
    height: 32px;
    background: var(--cc-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cc-checkmark svg {
    width: 20px;
    height: 20px;
    color: white;
}
.cc-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.cc-radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cc-gold);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.cc-option-card.selected .cc-radio-circle {
    background: var(--cc-gold);
}
.cc-radio-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}
.cc-option-card.selected .cc-radio-dot {
    opacity: 1;
}
.cc-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cc-gold);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
}
.cc-option-card.selected .cc-checkbox {
    background: var(--cc-gold);
    border-color: var(--cc-gold);
}
.cc-checkbox svg {
    width: 12px;
    height: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}
.cc-option-card.selected .cc-checkbox svg {
    opacity: 1;
}
.cc-option-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--cc-dark);
    flex: 1;
}
/* Chip Buttons */

.cc-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.cc-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--cc-border);
    border-radius: 999px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--cc-dark);
    transition: all 0.2s ease;
}
.cc-chip:hover {
    border-color: rgba(176, 135, 59, 0.4);
    background: var(--cc-light);
}
.cc-chip.selected {
    border-color: var(--cc-gold);
    background: var(--cc-gold);
    color: white;
    box-shadow: 0 2px 8px rgba(176, 135, 59, 0.25);
    transform: scale(1.05);
}
.cc-chip-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cc-chip.selected .cc-chip-icon {
    color: white;
}
.cc-chip:not(.selected) .cc-chip-icon {
    color: var(--cc-gold);
}
/* Panel Footer */

.cc-panel-footer {
    padding: 24px;
    border-top: 2px solid var(--cc-border);
    background: white;
    flex-shrink: 0;
}
.cc-button-row {
    display: flex;
    gap: 12px;
}
.cc-button-row button svg {
    width: 1rem;
    height: 1rem;
}
.cc-panel-content>div svg {
    width: 1rem;
    height: 1rem;
}
.cc-panel-content .cc-result-icon svg {
    width: 3rem;
    height: 3rem;
}
.cc-btn {
    height: 56px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}
.cc-btn-back {
    width: 56px;
    background: white;
    border: 2px solid var(--cc-border);
    color: var(--cc-dark);
}
.cc-btn-back:not(:disabled):hover {
    background: var(--cc-light);
}
.cc-btn-back:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cc-btn-next {
    flex: 1;
    background: var(--cc-gold);
    color: white;
}
.cc-btn-next:not(:disabled):hover {
    background: var(--cc-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(176, 135, 59, 0.3);
}
.cc-btn-next:disabled {
    background: var(--cc-border);
    cursor: not-allowed;
}
/* Result Screen */

.cc-result-title, .cc-result-subtitle {
    text-align: center;
}
.cc-result-container {
    text-align: left;
    padding: 24px 0;
}
.cc-result-icon {
    width: 80px;
    height: 80px;
    background: rgba(93, 172, 47, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease-out;
}
.cc-result-icon svg {
    width: 48px;
    height: 48px;
}
@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.cc-result-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--cc-dark);
    margin: 0 0 12px 0;
}
.cc-result-subtitle {
    font-size: 16px;
    color: var(--cc-gray);
    margin: 0 0 32px 0;
    line-height: 1.6;
}
/* Contact Form */

.cc-form-group {
    margin-bottom: 20px;
}
.cc-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cc-dark);
    margin-bottom: 8px;
}
.cc-form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--cc-border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--cc-dark);
    transition: all 0.2s;
    font-family: inherit;
}
.cc-form-input:focus {
    outline: none;
    border-color: var(--cc-gold);
    box-shadow: 0 0 0 3px rgba(176, 135, 59, 0.1);
}
.cc-form-input::placeholder {
    color: var(--cc-gray);
}
.cc-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}
.cc-checkbox-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cc-gold);
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}
.cc-checkbox-input:checked {
    background: var(--cc-gold);
}
.cc-checkbox-input:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}
.cc-checkbox-label {
    font-size: 14px;
    color: var(--cc-dark);
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
}
.cc-checkbox-label a {
    color: var(--cc-gold);
    text-decoration: underline;
}
.cc-checkbox-label a:hover {
    color: var(--cc-gold-hover);
}
.cc-submit-btn {
    width: 100%;
    height: 56px;
    background: var(--cc-gold);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cc-submit-btn:not(:disabled):hover {
    background: var(--cc-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 135, 59, 0.4);
}
.cc-submit-btn:disabled {
    background: var(--cc-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Mobile Responsive */

@media (max-width: 768px) {
    .cc-panel {
        max-width: 100%;
    }
    .cc-floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 15px;
    }
    .cc-panel-header {
        padding: 24px 20px 20px;
    }
    .cc-panel-content {
        padding: 20px;
    }
    .cc-question-title {
        font-size: 20px;
    }
    .cc-option-image {
        width: 60px;
        height: 60px;
    }
    .cc-option-image-overlay {
        width: 60px;
        height: 60px;
    }
    .cc-chips-container {
        gap: 8px;
    }
    .cc-chip {
        font-size: 14px;
        padding: 10px 16px;
    }
}
@media (max-width: 480px) {
    .cc-option-image {
        display: none;
    }
    .cc-option-image-overlay {
        display: none !important;
    }
    .cc-option-card {
        padding: 16px;
    }
}
/* Inline variant — gebruikt door [coffeeclick_keuzehulp_inline] shortcode */
.coffeeclick-keuzehulp-inline {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.cc-inline {
    background: white;
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.cc-inline-header {
    padding: 32px 24px 24px;
    border-bottom: 2px solid var(--cc-border);
    background: white;
}
.cc-inline-content {
    background-color: #FAF7F4;
    padding: 24px;
}
.cc-inline-footer {
    padding: 24px;
    border-top: 2px solid var(--cc-border);
    background: white;
}
.cc-inline-content>div svg {
    width: 1rem;
    height: 1rem;
}
.cc-inline-content .cc-result-icon svg {
    width: 3rem;
    height: 3rem;
}
@media (max-width: 600px) {
    .cc-inline {
        border-radius: 12px;
    }
    .cc-inline-header {
        padding: 24px 16px 16px;
    }
    .cc-inline-content {
        padding: 16px;
    }
    .cc-inline-footer {
        padding: 16px;
    }
}
