/* Base */
.v2sl-section {
    background-color: #ffffff;
    padding: 48px 32px;
    margin: 32px auto;
    max-width: 1200px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(7, 55, 99, 0.05);
}

.v2sl-section--light {
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
}

.v2sl-section__header {
    text-align: left;
    margin-bottom: 24px;
    border-left: 4px solid #073763;
    padding-left: 16px;
}

.v2sl-title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 4px;
    color: #073763;
    font-weight: 700;
}

.v2sl-subtitle {
    margin: 0;
    color: #333333;
    font-size: 14px;
    opacity: 0.85;
}

/* Layout / grid */
.v2sl-form {
    margin-top: 28px;
}

.v2sl-form__section {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(7, 55, 99, 0.06);
}

.v2sl-form__section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.v2sl-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #073763;
    margin: 0 0 10px;
}

.v2sl-grid {
    display: grid;
    gap: 18px;
}

.v2sl-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.v2sl-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.v2sl-field {
    margin-bottom: 14px;
}

.v2sl-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #073763;
    font-weight: 600;
}

.v2sl-required {
    color: #c0392b;
}

/* Inputs */
.v2sl-field input,
.v2sl-field select,
.v2sl-field textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #dde3ec;
    padding: 10px 12px;
    font-size: 14px;
    color: #111111;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v2sl-field textarea {
    resize: vertical;
}

.v2sl-field input:focus,
.v2sl-field select:focus,
.v2sl-field textarea:focus {
    outline: none;
    border-color: #073763;
    box-shadow: 0 0 0 2px rgba(7, 55, 99, 0.15);
}

/* Buttons */
.v2sl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
}

.v2sl-btn--primary {
    background-color: #073763;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(7, 55, 99, 0.35);
}

.v2sl-btn--primary:hover {
    background-color: #09467f;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(7, 55, 99, 0.45);
}

/* Alerts */
.v2sl-alert {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.v2sl-alert--hidden {
    display: none;
}

.v2sl-alert--success {
    background-color: #e7f8ef;
    border: 1px solid #2ecc71;
    color: #1f7f46;
}

.v2sl-alert--error {
    background-color: #fdeeee;
    border: 1px solid #e74c3c;
    color: #a3261c;
}

/* Error / helper text */
.v2sl-field--error input,
.v2sl-field--error select,
.v2sl-field--error textarea {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.35);
}

.v2sl-field--error label {
    color: #e74c3c;
}

.v2sl-help-text {
    font-size: 12px;
    color: #666666;
    margin: 2px 0 6px;
}

/* District picker */
.v2sl-district-picker {
    border-radius: 10px;
    border: 1px solid #dde3ec;
    padding: 8px 10px;
    background-color: #ffffff;
}

.v2sl-district-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.v2sl-district-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(7, 55, 99, 0.25);
    background-color: #f5f8fc;
    color: #073763;
    gap: 4px;
}

.v2sl-district-chip__remove {
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.v2sl-district-input-wrap {
    position: relative;
}

.v2sl-district-input {
    width: 100%;
    border-radius: 8px;
    border: none;
    outline: none;
    padding: 6px 2px 4px;
    font-size: 14px;
}

.v2sl-district-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.v2sl-district-suggestion {
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}

.v2sl-district-suggestion:hover {
    background-color: #f1f5fb;
    color: #073763;
}

/* File upload */
.v2sl-file-row {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.v2sl-file-label {
    font-size: 12px;
    color: #555555;
}

/* Upload progress */
.v2sl-upload-progress {
    margin-top: 10px;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background-color: #e5ebf5;
    overflow: hidden;
}

.v2sl-upload-progress--hidden {
    display: none;
}

.v2sl-upload-progress__bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #073763, #0b5aa0);
    transition: width 0.15s ease-out;
}

/* Terms */
.v2sl-field--terms {
    text-align: left;
    display: flex;
    align-items: flex-start;
}

.v2sl-terms-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #333333;
}

.v2sl-terms-label input[type="checkbox"] {
    margin-top: 3px;
}

.v2sl-terms-label a {
    color: #073763;
    text-decoration: underline;
}

/* Form footer */
.v2sl-form__footer {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.v2sl-form__note {
    font-size: 12px;
    color: #555555;
    max-width: 420px;
}

/* Analytics layout (unchanged) */
.v2sl-analytics-layout {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

@media (min-width: 900px) {
    .v2sl-analytics-layout {
        grid-template-columns: 3fr 2fr;
    }
}

.v2sl-analytics-panel {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(7, 55, 99, 0.08);
    padding: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.03);
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .v2sl-section {
        padding: 32px 16px;
        margin: 16px;
    }

    .v2sl-grid--2 {
        grid-template-columns: 1fr;
    }

    .v2sl-grid--3 {
        grid-template-columns: 1fr;
    }
}
