/* ===========================================================================
   Do Not Sell or Share My Personal Information — DSAR request form
   Themed per-brand via the config.*.css custom properties, with fallbacks.
   =========================================================================== */
.dns-form {
    max-width: 640px;
    margin: 0 auto;
}

.dns-form .form-group {
    margin-bottom: 18px;
}

.dns-form label.css-mfd8fj {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-text, #1b1e21);
}

.dns-form input[type="text"],
.dns-form input[type="tel"],
.dns-form input[type="email"],
.dns-form select,
.dns-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d6dbe1;
    border-radius: var(--radius, 8px);
    background: var(--bg-input, #f9fafb);
    color: var(--color-text, #1b1e21);
    font-size: 15px;
    font-family: inherit;
}

.dns-form input:focus,
.dns-form select:focus,
.dns-form textarea:focus {
    outline: none;
    border-color: var(--color-primary, #069ED9);
    box-shadow: 0 0 0 2px rgba(6, 158, 217, 0.18);
}

/* Fieldsets for the two button-style choices */
.dns-fieldset {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}
.dns-legend {
    padding: 0;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-text, #1b1e21);
}

.dns-segment {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dns-option {
    position: relative;
    display: inline-flex;
}
.dns-option input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}
.dns-option span {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #d6dbe1;
    border-radius: var(--radius, 8px);
    background: var(--bg-input, #f9fafb);
    color: var(--color-text, #1b1e21);
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dns-option span:hover {
    border-color: var(--color-primary, #069ED9);
}
.dns-option input:checked + span {
    background: var(--color-primary, #069ED9);
    border-color: var(--color-primary, #069ED9);
    color: var(--color-primary-text, #ffffff);
}
.dns-option input:focus-visible + span {
    outline: 2px solid var(--color-primary, #069ED9);
    outline-offset: 2px;
}

/* Field grids */
.dns-grid {
    display: grid;
    gap: 14px;
}
.dns-grid--2 {
    grid-template-columns: 1fr 1fr;
}
.dns-grid--3 {
    grid-template-columns: 1.4fr 1fr 1fr;
}

/* Phone row: country code + number */
.dns-phone-row {
    display: flex;
    gap: 10px;
}
.dns-phone-row .dns-country {
    flex: 0 0 auto;
    width: auto;
    min-width: 168px;
}
.dns-phone-row input {
    flex: 1 1 auto;
}

.dns-textarea {
    resize: vertical;
    min-height: 110px;
}
.dns-charcount {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text, #666666);
    opacity: 0.7;
    text-align: right;
}

/* Acknowledgement */
.dns-ack {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 22px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text, #1b1e21);
    cursor: pointer;
}
.dns-ack input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.dns-form .invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.3) !important;
}

.dns-form .form-feedback {
    margin-top: 14px;
    font-weight: 600;
    min-height: 1.2em;
}

@media (max-width: 560px) {
    .dns-grid--2,
    .dns-grid--3 {
        grid-template-columns: 1fr;
    }
    .dns-phone-row {
        flex-direction: column;
    }
    .dns-phone-row .dns-country {
        min-width: 0;
        width: 100%;
    }
}
