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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    min-height: 100vh;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logout-link {
    position: absolute;
    top: 20px;
    right: 20px;
}

.logout-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

h1 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-weight: 500;
    min-height: 1.2em;
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

/* Two Column Layout - Default is 2 columns */
.wizard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Form Sections */
.form-section {
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.form-section.compact {
    padding: 15px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Telephone input - larger and bold for easy reading */
input[type="tel"]#telefoon {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Radio Groups - Horizontal */
.radio-group-horizontal {
    display: flex;
    gap: 8px;
}

.radio-label-compact {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    flex: 1;
    justify-content: center;
}

.radio-label-compact:hover {
    border-color: #4CAF50;
    background-color: #f9f9f9;
}

.radio-label-compact input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
}

.radio-label-compact:has(input[type="radio"]:checked) {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    font-weight: 600;
}

/* Radio Groups - Grid */
.radio-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Toggle Labels - Compact */
.toggle-label-compact {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
}

.toggle-label-compact:hover {
    border-color: #4CAF50;
    background-color: #f9f9f9;
}

.toggle-label-compact:has(input[type="checkbox"]:checked) {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    font-weight: 600;
}

.toggle-label-compact input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Option Groups */
.option-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.radio-label-small {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    background: white;
}

.radio-label-small:hover {
    border-color: #4CAF50;
}

.radio-label-small:has(input[type="radio"]:checked) {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.radio-label-small input[type="radio"] {
    margin-right: 4px;
    cursor: pointer;
}

.input-inline {
    width: 36px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    margin-left: 4px;
}

/* Container plaatst option-rows naast elkaar */
.option-row-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Compact option row: label above buttons, buttons on single line */
.option-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
    flex: 1 1 0;
    min-width: 0;
}

.option-row .option-row-label {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.2;
}

.option-row .option-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: stretch;
}

.option-row .radio-label-small {
    padding: 6px 8px;
    font-size: 13px;
}

.option-row .input-inline {
    width: 42px;
    margin-left: 2px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.option-row .input-inline::-webkit-inner-spin-button,
.option-row .input-inline::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Address Section */
.input-with-status {
    position: relative;
}

.status-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.status-icon.success {
    background-color: #4CAF50;
    color: white;
}

.status-icon.error {
    background-color: #f44336;
    color: white;
}

.status-icon.loading {
    background-color: #FF9800;
    color: white;
}

.address-preview {
    margin-top: 12px;
    padding: 12px;
    background-color: #e3f2fd;
    border-radius: 4px;
    border: 1px solid #2196F3;
}

.address-preview.address-mismatch {
    background-color: #ffebee;
    border: 1px solid #ef5350;
}

.address-preview.address-mismatch .address-content {
    color: #c62828;
}

/* Extra emphasis for non-existent postcode */
.address-preview.address-not-found {
    background-color: #ffcdd2;
    border: 2px solid #d32f2f;
}

.address-content {
    font-size: 13px;
    color: #1565C0;
    margin-bottom: 8px;
}

/* Preview Section */
.preview-section {
    margin-top: 0;
}

.preview-textarea {
    width: 100%;
    resize: vertical;
    min-height: 120px;
    padding: 12px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
    font-family: inherit;
}

/* Buttons */
.btn {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #1976D2;
}

.btn-copy {
    background-color: #FF9800;
    color: white;
    width: 100%;
}

.btn-copy:hover {
    background-color: #F57C00;
}

.btn-large {
    font-size: 16px;
    font-weight: bold;
    padding: 14px 20px;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Login Page */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 100px auto;
}

.login-container h1 {
    font-size: 24px;
    margin-bottom: 30px;
}

.error {
    color: #f44336;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Copy Input Buttons */
.input-with-copy {
    position: relative;
}

.copy-input-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}

.copy-input-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.whatsapp-btn {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: #25D366;
    border: 1px solid #1ebe57;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: white;
    transition: all 0.2s;
}

.whatsapp-btn:hover {
    background: #1ebe57;
}

input.with-copy-btn {
    padding-right: 50px;
}

input.with-copy-whatsapp-btn {
    padding-right: 90px;
}

/* WhatsApp Reminder Buttons */
.btn-reminder {
    background: #25D366;
    border: 1px solid #1ebe57;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-reminder:hover {
    background: #1ebe57;
    transform: scale(1.1);
}

/* Final/closing reminder - subtle red-orange to signal last attempt */
.btn-reminder-final {
    background: rgba(229, 115, 115, 0.55);
    border-color: rgba(211, 47, 47, 0.45);
}

.btn-reminder-final:hover {
    background: rgba(229, 115, 115, 0.85);
}

/* WhatsApp Address Verification Button */
.btn-whatsapp-verify {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #25D366;
    border: 1px solid #1ebe57;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: all 0.2s;
}

.btn-whatsapp-verify:hover {
    background: #1ebe57;
}

.radio-label-compact {
    position: relative;
    padding-right: 40px; /* Make room for the button */
}

/* Reset Button */
.btn-reset {
    background-color: #2196F3;
    color: white;
    font-size: 14px;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background-color: #1976D2;
}

/* Responsive - Mobile 1 Column Layout */
@media (max-width: 900px) {
    .wizard-container {
        grid-template-columns: 1fr;
    }
}
