.tgg-public-form-addon-wrap,
.tgg-public-form-addon-wrap * {
    box-sizing: border-box;
}

.tgg-public-form-addon-wrap {
    --tgg-form-navy: #102f57;
    --tgg-form-blue: #2563eb;
    --tgg-form-gold: #c79a3b;
    --tgg-form-border: #dfe5ee;
    --tgg-form-muted: #667085;
    --tgg-form-bg: #f8fafc;
    max-width: 980px;
    margin: 28px auto;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tgg-public-form-addon {
    background: #ffffff;
    border: 1px solid var(--tgg-form-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(16, 47, 87, 0.12);
}

.tgg-public-form-addon-head {
    margin-bottom: 22px;
}

.tgg-public-form-addon-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--tgg-form-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tgg-public-form-addon h2 {
    margin: 0 0 8px;
    color: var(--tgg-form-navy);
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
}

.tgg-public-form-addon p {
    margin: 0;
    color: var(--tgg-form-muted);
    font-size: 16px;
}

.tgg-public-form-addon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tgg-public-form-addon label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #27364a;
    font-size: 14px;
    font-weight: 700;
}

.tgg-public-form-addon input,
.tgg-public-form-addon select,
.tgg-public-form-addon textarea {
    width: 100%;
    border: 1px solid var(--tgg-form-border);
    border-radius: 12px;
    background: #ffffff;
    color: #172033;
    font-size: 15px;
    padding: 12px 13px;
    outline: none;
}

.tgg-public-form-addon textarea {
    resize: vertical;
}

.tgg-public-form-addon input:focus,
.tgg-public-form-addon select:focus,
.tgg-public-form-addon textarea:focus {
    border-color: var(--tgg-form-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.tgg-public-form-addon-full,
.tgg-public-form-addon-consent,
.tgg-public-form-addon-actions {
    grid-column: 1 / -1;
}

.tgg-public-form-addon-consent {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px !important;
    margin-top: 18px;
    color: #475467 !important;
    font-weight: 600 !important;
}

.tgg-public-form-addon-consent input {
    width: auto;
    margin-top: 3px;
}

.tgg-public-form-addon-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

.tgg-public-form-addon-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.tgg-public-form-addon-button {
    border: 0;
    border-radius: 999px;
    background: var(--tgg-form-blue);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 24px;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.tgg-public-form-addon-button:hover {
    filter: brightness(0.96);
}

.tgg-public-form-addon-button:disabled {
    cursor: not-allowed;
    opacity: .7;
}

.tgg-public-form-addon-message {
    color: var(--tgg-form-muted);
    font-size: 14px;
    font-weight: 700;
}

.tgg-public-form-addon-message.is-success {
    color: #047857;
}

.tgg-public-form-addon-message.is-error {
    color: #b42318;
}

@media (max-width: 720px) {
    .tgg-public-form-addon {
        padding: 20px;
        border-radius: 16px;
    }

    .tgg-public-form-addon-grid {
        grid-template-columns: 1fr;
    }

    .tgg-public-form-addon-actions {
        align-items: stretch;
    }

    .tgg-public-form-addon-button {
        width: 100%;
    }
}
