/* ---- algemene layout ---- */
.sint-wrap {
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.sint-card {
    max-width: 900px;
    width: 100%;
    background: #fffdf8;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    padding: 1.25rem 2.5rem;
}

.sint-main {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 4rem;
}

.sint-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ---- formulier ---- */

.sint-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sint-section {
    margin-bottom: 0.5rem;
}

.sint-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.sint-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sint-grid-row .sint-field {
    flex: 1 1 0;
    min-width: 180px;
}

.sint-field {
    margin-bottom: 0.65rem;
    position: relative;
}

.sint-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.sint-input,
.sint-textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.sint-input:focus,
.sint-textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px #f59e0b33;
    background: #fffdf7;
}

.sint-textarea {
    min-height: 120px;
}

/* valid veld + checkmark */
.sint-field-valid .sint-input,
.sint-field-valid .sint-textarea {
    border-color: #16a34a;
    box-shadow: 0 0 0 1px #16a34a33;
}

.sint-field-valid::after {
    content: "✔";
    position: absolute;
    right: 10px;
    top: 32px;
    font-size: 0.9rem;
    color: #16a34a;
}

/* footnote / hulptekst */
.sint-footnote {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* partners tooltip */
.sint-partners-tip {
    position: relative;
    display: inline-block;
    color: #f97316;
    cursor: help;
    border-bottom: 1px dotted #f97316;
    margin-left: 2px;
}

.sint-partners-popover {
    position: absolute;
    left: 0;
    top: 1.4em;
    min-width: 180px;
    max-width: 260px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #374151;
    white-space: normal;
    z-index: 40;
    display: none;
}

.sint-partners-tip:hover .sint-partners-popover {
    display: block;
}

/* acties */
.sint-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.sint-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    border: 1px solid #f97316;
    background: #f97316;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.sint-button:hover {
    background: #ea580c;
    border-color: #ea580c;
}

/* secundaire knop (Maak er nog één) */
.sint-button-ghost {
    background: transparent;
    color: #f97316;
    border-color: #fed7aa;
}

.sint-button-ghost:hover {
    background: #fff7ed;
}

/* ---- verify / bedankt ---- */

.sint-main p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ---- memo-blad met gedicht ---- */

.sint-note {
    margin-top: 1.75rem;
    background: #fff8dc;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    border: 1px solid #facc6b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    position: relative;
}

.sint-note::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 40px;
    width: 20px;
    height: 20px;
    background: #fecaca;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.sint-note-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.sint-note-pre {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: "Georgia", "Times New Roman", serif;
}

/* ---- acties onder gedicht ---- */

.sint-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ---- geavanceerde opties ---- */

.sint-advanced {
    margin-top: 0.5rem;
}

.sint-advanced-toggle {
    border: none;
    background: #fff7ed;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.sint-advanced-toggle:hover {
    background: #ffedd5;
}

.sint-advanced-panel {
    margin-top: 0.8rem;
    padding: 0.9rem 1rem 0.4rem;
    border-radius: 14px;
    background: #fffaf3;
    border: 1px dashed #fed7aa;
}

/* ---- email-suggesties ---- */

.sint-email-wrap {
    position: relative;
}

.sint-email-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    margin-top: 4px;
    overflow: hidden;
}

.sint-email-suggestion-item {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.sint-email-suggestion-item:hover {
    background: #f97316;
    color: #fff;
}

/* ---- loading overlay ---- */

.sint-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 248, 237, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sint-loading-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 320px;
}

.sint-loading-spinner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid #fed7aa;
    border-top-color: #f97316;
    margin: 0 auto 0.9rem;
    animation: sint-spin 0.8s linear infinite;
}

.sint-loading-box p {
    margin: 0;
    font-size: 0.95rem;
}

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

/* responsive */
@media (max-width: 640px) {
    .sint-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }
}
