/**
 * Consultation UI Styling
 */

.sswp-spreekkamerkaart {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    position: relative;
}

/* Language Toggle */
.sswp-spk-lang-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.sswp-spk-lang-toggle::-webkit-scrollbar {
    height: 4px;
}

.sswp-spk-lang-toggle::-webkit-scrollbar-track {
    background: transparent;
}

.sswp-spk-lang-toggle::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 2px;
}

.sswp-spk-lang-toggle::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.sswp-spk-lang-btn {
    background: transparent;
    border: none;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sswp-spk-lang-btn:hover {
    color: #000;
}

.sswp-spk-lang-btn.active {
    color: #000;
    font-weight: 600;
}

.sswp-spk-lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

/* Header */
.sswp-spk-header {
    text-align: left;
    margin-bottom: 1rem;
    max-width: 100%;
}

.sswp-spk-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.sswp-spk-intro {
    font-size: 1rem;
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.sswp-spk-intro p {
    margin: 0.25rem 0;
}

.sswp-spk-intro strong {
    color: #2c3e50;
}

/* Content layout - consultation form (body illustration column hidden) */
.sswp-spk-content {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.sswp-spk-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 72px;
    align-items: start;
}

.sswp-spk-col-left {
    position: relative;
    z-index: 0;
}

.sswp-spk-col-right {
    display: none;
}

.sswp-spk-figure {
    display: none;
}

.sswp-spk-body-image {
    width: 100%;
    height: auto;
    max-width: 90%;
    display: block;
    position: relative;
    z-index: 0;
}

.sswp-spk-figure svg {
    width: 100%;
    height: auto;
    max-width: 90%;
}

/* Legend */
.sswp-spk-legend {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.sswp-spk-legend-min {
    color: #27ae60;
}

.sswp-spk-legend-max {
    color: #e74c3c;
}

/* Items - Clean layout without card styling */
.sswp-spk-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* New structure: label above scale */
.sswp-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.sswp-item:last-child {
    border-bottom: none;
}

.sswp-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sswp-item-label {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.sswp-item-scale {
    display: flex;
    gap: 0.25rem;
    width: 100%;
}

/* Legacy class support for other complaints section */
.sswp-spk-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.sswp-spk-item:last-child {
    border-bottom: none;
}

.sswp-spk-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sswp-spk-item-label {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.sswp-spk-item-scale {
    display: flex;
    gap: 0.25rem;
    width: 100%;
}

/* Buttons - Sjögren Europe color palette */
.sswp-spk-btn {
    flex: 1;
    min-width: max(32px, 2.5em);
    height: 40px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #000;
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Sjögren Europe color palette for scores 0-10 */
.sswp-spk-btn-score-0 {
    background-color: #008000;
    border-color: #008000;
    color: #fff;
}

.sswp-spk-btn-score-1 {
    background-color: #32CD32;
    border-color: #32CD32;
    color: #000;
}

.sswp-spk-btn-score-2 {
    background-color: #7CFC00;
    border-color: #7CFC00;
    color: #000;
}

.sswp-spk-btn-score-3 {
    background-color: #ADFF2F;
    border-color: #ADFF2F;
    color: #000;
}

.sswp-spk-btn-score-4 {
    background-color: #FFFF00;
    border-color: #FFFF00;
    color: #000;
}

.sswp-spk-btn-score-5 {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #000;
}

.sswp-spk-btn-score-6 {
    background-color: #FFA500;
    border-color: #FFA500;
    color: #000;
}

.sswp-spk-btn-score-7 {
    background-color: #FF4500;
    border-color: #FF4500;
    color: #fff;
}

.sswp-spk-btn-score-8 {
    background-color: #FF0000;
    border-color: #FF0000;
    color: #fff;
}

.sswp-spk-btn-score-9 {
    background-color: #B22222;
    border-color: #B22222;
    color: #fff;
}

.sswp-spk-btn-score-10 {
    background-color: #8B0000;
    border-color: #8B0000;
    color: #fff;
}

.sswp-spk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sswp-spk-btn:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Active/Selected state with diagonal stripes */
/* Use more specific selectors to override score-specific border-color */
.sswp-spk-btn[aria-checked="true"],
.sswp-spk-btn.active,
.sswp-spk-btn-score-0[aria-checked="true"],
.sswp-spk-btn-score-0.active,
.sswp-spk-btn-score-1[aria-checked="true"],
.sswp-spk-btn-score-1.active,
.sswp-spk-btn-score-2[aria-checked="true"],
.sswp-spk-btn-score-2.active,
.sswp-spk-btn-score-3[aria-checked="true"],
.sswp-spk-btn-score-3.active,
.sswp-spk-btn-score-4[aria-checked="true"],
.sswp-spk-btn-score-4.active,
.sswp-spk-btn-score-5[aria-checked="true"],
.sswp-spk-btn-score-5.active,
.sswp-spk-btn-score-6[aria-checked="true"],
.sswp-spk-btn-score-6.active,
.sswp-spk-btn-score-7[aria-checked="true"],
.sswp-spk-btn-score-7.active,
.sswp-spk-btn-score-8[aria-checked="true"],
.sswp-spk-btn-score-8.active,
.sswp-spk-btn-score-9[aria-checked="true"],
.sswp-spk-btn-score-9.active,
.sswp-spk-btn-score-10[aria-checked="true"],
.sswp-spk-btn-score-10.active {
    border-width: 3px;
    border-color: #000;
    outline: 2px solid #000;
    outline-offset: 2px;
    font-weight: bold;
    position: relative;
}

.sswp-spk-btn[aria-checked="true"]::after,
.sswp-spk-btn.active::after,
.sswp-spk-btn-score-0[aria-checked="true"]::after,
.sswp-spk-btn-score-0.active::after,
.sswp-spk-btn-score-1[aria-checked="true"]::after,
.sswp-spk-btn-score-1.active::after,
.sswp-spk-btn-score-2[aria-checked="true"]::after,
.sswp-spk-btn-score-2.active::after,
.sswp-spk-btn-score-3[aria-checked="true"]::after,
.sswp-spk-btn-score-3.active::after,
.sswp-spk-btn-score-4[aria-checked="true"]::after,
.sswp-spk-btn-score-4.active::after,
.sswp-spk-btn-score-5[aria-checked="true"]::after,
.sswp-spk-btn-score-5.active::after,
.sswp-spk-btn-score-6[aria-checked="true"]::after,
.sswp-spk-btn-score-6.active::after,
.sswp-spk-btn-score-7[aria-checked="true"]::after,
.sswp-spk-btn-score-7.active::after,
.sswp-spk-btn-score-8[aria-checked="true"]::after,
.sswp-spk-btn-score-8.active::after,
.sswp-spk-btn-score-9[aria-checked="true"]::after,
.sswp-spk-btn-score-9.active::after,
.sswp-spk-btn-score-10[aria-checked="true"]::after,
.sswp-spk-btn-score-10.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(0, 0, 0, 0.15) 4px,
        rgba(0, 0, 0, 0.15) 8px
    );
    pointer-events: none;
    border-radius: 2px;
}

/* Other complaints */
.sswp-spk-other {
    margin-top: 1rem;
    padding: 0.75rem 0;
}

.sswp-spk-other > label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sswp-spk-other-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.sswp-spk-other-input:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
    border-color: #000;
}

.sswp-spk-char-count {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Score scale for other complaints */
.sswp-spk-other .sswp-item,
.sswp-spk-other .sswp-spk-item {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

/* Actions */
.sswp-spk-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Primary Submit Button - Modern Blue Style */
.sswp-spreekkamerkaart .sswp-spk-submit,
.sswp-spreekkamerkaart .sswp-spk-submit.button,
.sswp-spreekkamerkaart .sswp-spk-submit.button-primary {
    /* Reset default WordPress button styles */
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    background: #1E6BD6 !important;
    color: #fff !important;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sswp-spreekkamerkaart .sswp-spk-submit:hover,
.sswp-spreekkamerkaart .sswp-spk-submit.button:hover,
.sswp-spreekkamerkaart .sswp-spk-submit.button-primary:hover {
    background: #1a5fc0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 107, 214, 0.3);
}

.sswp-spreekkamerkaart .sswp-spk-submit:focus {
    outline: 2px solid #1E6BD6;
    outline-offset: 2px;
    background: #1a5fc0;
}

.sswp-spreekkamerkaart .sswp-spk-submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sswp-spreekkamerkaart .sswp-spk-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Summary view (below form) */
.sswp-spk-summary {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-top: 3px solid #000;
}

.sswp-spk-summary-header {
    margin-bottom: 1.5rem;
}

.sswp-spk-summary-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
}

.sswp-spk-summary-content {
    /* Content styling handled by result sections */
}

/* Result view */
.sswp-spk-result {
    padding: 2rem;
}

.sswp-spk-result-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Ensure equal height cards */
}

.sswp-spk-result-left-block,
.sswp-spk-result-right-block {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Allow cards to stretch to equal height */
}

.sswp-spk-result-left-block h3,
.sswp-spk-result-right-block h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.sswp-spk-result-left-block p,
.sswp-spk-result-right-block p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.sswp-spk-result-note {
    font-weight: 600;
    color: #d35400;
}

/* Actions wrapper - pushes to bottom */
.sswp-spk-result-actions {
    margin-top: auto; /* Push actions to bottom */
}

/* Buttons row - two buttons side by side on desktop */
.sswp-spk-result-buttons-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.sswp-spk-result-buttons-top .button {
    flex: 1;
    min-width: 0; /* Allow buttons to shrink */
    text-align: center;
    padding: 0.875rem 1.5rem;
    height: 44px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-shadow: none;
}

/* Restart button in buttons row */
.sswp-spk-result-buttons-top .sswp-spk-restart {
    flex: 1;
    min-width: 0;
}

/* Primary button (Download) */
.sswp-spk-result-buttons-top .sswp-spk-download,
.sswp-spk-result-buttons-top .button-primary {
    background: #1E6BD6 !important;
    color: #fff !important;
    border: none !important;
}

.sswp-spk-result-buttons-top .sswp-spk-download:hover,
.sswp-spk-result-buttons-top .button-primary:hover {
    background: #1a5fc0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 107, 214, 0.3);
}

.sswp-spk-result-buttons-top .sswp-spk-download:focus,
.sswp-spk-result-buttons-top .button-primary:focus {
    outline: 2px solid #1E6BD6;
    outline-offset: 2px;
}

/* Outline/secondary button */
.sswp-spk-result-buttons-top .button-secondary,
.sswp-spk-result-buttons-top .sswp-spk-other-action {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #CBD5E1 !important;
}

.sswp-spk-result-buttons-top .button-secondary:hover,
.sswp-spk-result-buttons-top .sswp-spk-other-action:hover {
    background: #f8f9fa !important;
    border-color: #94a3b8 !important;
}

.sswp-spk-result-buttons-top .button-secondary:focus,
.sswp-spk-result-buttons-top .sswp-spk-other-action:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

/* Restart button styling */
.sswp-spk-result-buttons-top .sswp-spk-restart {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #CBD5E1 !important;
}

.sswp-spk-result-buttons-top .sswp-spk-restart:hover {
    background: #f8f9fa !important;
    border-color: #94a3b8 !important;
}

.sswp-spk-result-buttons-top .sswp-spk-restart:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

.sswp-spk-result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sswp-spk-result-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.sswp-spk-privacy {
    color: #666;
    font-style: italic;
}

.sswp-spk-result-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sswp-spk-result-section {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.sswp-spk-result-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.sswp-spk-result-section p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.sswp-spk-result-actions {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.sswp-spk-result-left,
.sswp-spk-result-right {
    flex: 1;
}

.sswp-spk-result-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sswp-spk-download,
.sswp-spk-restart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* Email form wrapper - pushes to bottom */
.sswp-spk-email-form {
    margin-top: auto; /* Push email form to bottom */
}

.sswp-spk-email-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Email input + button inline */
.sswp-spk-email-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 0.5rem;
}

.sswp-spk-email-input {
    flex: 1;
    padding: 0 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    height: 44px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s ease, outline 0.15s ease;
    min-width: 0; /* Allow input to shrink */
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.sswp-spk-email-input:focus {
    outline: 2px solid #1E6BD6;
    outline-offset: 2px;
    border-color: #1E6BD6;
}

.sswp-spk-send-email {
    padding: 0.875rem 1.5rem;
    height: 44px;
    border-radius: 8px;
    background: #1E6BD6 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sswp-spk-send-email:hover {
    background: #1a5fc0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 107, 214, 0.3);
}

.sswp-spk-send-email:focus {
    outline: 2px solid #1E6BD6;
    outline-offset: 2px;
}

.sswp-spk-send-email:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sswp-spk-email-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
}

.sswp-spk-email-status.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.sswp-spk-email-status.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Modal */
.sswp-spk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sswp-spk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.sswp-spk-modal-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.sswp-spk-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.sswp-spk-modal-close:hover,
.sswp-spk-modal-close:focus {
    background: #f0f0f0;
    color: #000;
    outline: 2px solid #000;
    outline-offset: 2px;
}

.sswp-spk-modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-right: 2rem;
    font-size: 1.5rem;
    color: #2c3e50;
}

.sswp-spk-modal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.sswp-spk-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Modal Button Styles - Scoped to plugin */
.sswp-spreekkamerkaart .sswp-spk-modal-actions button,
.sswp-spreekkamerkaart .sswp-spk-modal-actions .button {
    /* Reset default WordPress button styles */
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    min-width: 120px;
    font-family: inherit;
}

/* Primary Modal Button */
.sswp-spreekkamerkaart .sswp-spk-modal-complete-btn,
.sswp-spreekkamerkaart .sswp-spk-modal-complete-btn.button,
.sswp-spreekkamerkaart .sswp-spk-modal-complete-btn.button-primary {
    background: #1E6BD6 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sswp-spreekkamerkaart .sswp-spk-modal-complete-btn:hover,
.sswp-spreekkamerkaart .sswp-spk-modal-complete-btn.button:hover,
.sswp-spreekkamerkaart .sswp-spk-modal-complete-btn.button-primary:hover {
    background: #1a5fc0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 107, 214, 0.3);
}

.sswp-spreekkamerkaart .sswp-spk-modal-complete-btn:focus {
    outline: 2px solid #1E6BD6;
    outline-offset: 2px;
    background: #1a5fc0;
}

.sswp-spreekkamerkaart .sswp-spk-modal-complete-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Secondary Modal Button - Ghost Style */
.sswp-spreekkamerkaart .sswp-spk-modal-close-btn,
.sswp-spreekkamerkaart .sswp-spk-modal-close-btn.button,
.sswp-spreekkamerkaart .sswp-spk-modal-close-btn.button-secondary {
    background: transparent !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.sswp-spreekkamerkaart .sswp-spk-modal-close-btn:hover,
.sswp-spreekkamerkaart .sswp-spk-modal-close-btn.button:hover,
.sswp-spreekkamerkaart .sswp-spk-modal-close-btn.button-secondary:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
    color: #000 !important;
}

.sswp-spreekkamerkaart .sswp-spk-modal-close-btn:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
    background: #f5f5f5;
    border-color: #999;
}

.sswp-spreekkamerkaart .sswp-spk-modal-close-btn:active {
    background: #e9e9e9;
}

/* Disabled state for modal buttons */
.sswp-spreekkamerkaart .sswp-spk-modal-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .sswp-spk-row {
        gap: 32px;
    }

    .sswp-spk-body-image {
        max-width: 95%;
    }

    .sswp-spk-figure svg {
        max-width: 95%;
    }
}

@media (max-width: 900px) {
    .sswp-spk-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sswp-spk-col-right {
        margin-bottom: 2rem;
    }

    .sswp-spk-figure {
        max-width: 200px;
        margin: 0 auto;
    }

    .sswp-spk-body-image {
        max-width: 100%;
    }

    .sswp-spk-figure svg {
        max-width: 100%;
    }

    /* Stack buttons and email row on smaller screens */
    .sswp-spk-result-buttons-top {
        flex-direction: column;
    }

    .sswp-spk-result-buttons-top .button {
        width: 100%;
    }

    .sswp-spk-email-row {
        flex-direction: column;
    }

    .sswp-spk-email-row .sswp-spk-email-input,
    .sswp-spk-email-row .sswp-spk-send-email {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sswp-spk-row {
        grid-template-columns: 1fr;
    }

    .sswp-item,
    .sswp-spk-item {
        flex-direction: column;
        align-items: stretch;
    }

    .sswp-item-label,
    .sswp-spk-item-label {
        flex: none;
        margin-bottom: 0.5rem;
    }

    .sswp-spk-result-actions {
        flex-direction: column;
    }

    .sswp-spk-result-container {
        grid-template-columns: 1fr;
    }

    /* On mobile, allow buttons and email form to stack */
    .sswp-spk-result-buttons-top {
        flex-direction: column;
    }

    .sswp-spk-result-buttons-top .button {
        width: 100%;
    }

    .sswp-spk-email-row {
        flex-direction: column;
    }

    .sswp-spk-email-row .sswp-spk-email-input,
    .sswp-spk-email-row .sswp-spk-send-email {
        width: 100%;
    }

    .sswp-spk-modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .sswp-spk-modal-actions {
        flex-direction: column;
    }

    .sswp-spk-modal-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sswp-spk-btn {
        min-width: max(28px, 2.5em);
        height: 36px;
        font-size: 0.8rem;
    }
}


