/* ReviewAgent Google Bedrijfsprofiel Analyse Widget */
/* Modern Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables - ReviewAgent Brand Colors */
:root {
    --primary-yellow: #fac452;
    --primary-yellow-hover: #e5b347;
    --primary-teal: #3d8b9e;
    --primary-teal-dark: #2d6b7e;
    --accent-purple: #6b2d5c;
    --accent-purple-hover: #5a2650;
    --surface-white: #ffffff;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --success-green: #10b981;
    --success-bg: #ecfdf5;
    --error-red: #ef4444;
    --error-bg: #fef2f2;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Main Widget Container */
.widget-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-large);
    overflow: hidden;
    min-height: 600px;
}

/* Form Panel - Left Side */
.form-panel {
    flex: 1;
    background: var(--primary-yellow);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-panel::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 40px solid transparent;
    border-bottom: 40px solid transparent;
    border-left: 30px solid var(--primary-yellow);
    z-index: 2;
}

.form-content {
    position: relative;
    z-index: 1;
}

/* Badge */
.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* Headings */
h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 12px;
}

h1 .highlight {
    color: var(--primary-teal);
}

.description {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    flex: 1;
}

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

/* Input Styling */
.autocomplete-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 1;
    pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--surface-white);
    transition: all 0.2s ease;
}

.autocomplete-input {
    padding-left: 44px !important;
}

input::placeholder {
    color: var(--text-light);
}

input:hover {
    border-color: var(--border-light);
}

input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(61, 139, 158, 0.15);
}

/* Autocomplete Dropdown */
.suggestions-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.suggestions-list.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background-color 0.15s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(250, 196, 82, 0.15);
}

.suggestion-primary {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.suggestion-secondary {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Submit Button */
button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-teal);
    color: var(--surface-white);
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(61, 139, 158, 0.35);
}

button[type="submit"]:hover:not(:disabled) {
    background: var(--primary-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 139, 158, 0.45);
}

button[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

button[type="submit"] svg {
    transition: transform 0.2s ease;
}

button[type="submit"]:hover:not(:disabled) svg {
    transform: translateX(4px);
}

/* Acceptance Text */
.acceptance-text {
    font-size: 0.75rem;
    color: var(--text-medium);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.acceptance-text a {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Loading State */
#loading {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading p {
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Messages */
#message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

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

.success {
    background-color: var(--success-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error {
    background-color: var(--error-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.hidden {
    display: none !important;
}

/* Visual Panel - Right Side */
.visual-panel {
    flex: 1;
    background: var(--primary-teal);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.visual-content {
    position: relative;
    z-index: 1;
}

/* Feature Badge */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--surface-white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.feature-badge svg {
    stroke: var(--primary-yellow);
}

/* Visual Panel Headings */
.visual-panel h2 {
    color: var(--surface-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.benefit-text strong {
    color: var(--surface-white);
    font-size: 1rem;
    font-weight: 600;
}

.benefit-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Trust Badge */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.trust-badge span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .widget-container {
        flex-direction: column;
        max-width: 500px;
    }

    .form-panel::after {
        display: none;
    }

    .form-panel,
    .visual-panel {
        padding: 36px 28px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 500px) {
    body {
        padding: 12px;
    }

    .widget-container {
        border-radius: var(--radius-lg);
    }

    .form-panel,
    .visual-panel {
        padding: 28px 20px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .description {
        font-size: 0.9rem;
    }

    button[type="submit"] {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Scrollbar Styling */
.suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Embed Mode - Remove body background when embedded */
body.embed-mode {
    background: transparent;
    min-height: auto;
    padding: 0;
}

body.embed-mode .widget-container {
    box-shadow: var(--shadow-medium);
}
