.ww-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .ww-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ww-binding-wrap {
    grid-column: auto;
}

.ww-binding-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.ww-binding-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
}

.ww-binding-check input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #1a1a1a;
    cursor: pointer;
}

.ww-binding-sub {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .ww-binding-sub {
        grid-template-columns: 1fr 1fr;
    }
}

.ww-binding-sub.hidden {
    display: none !important;
}

.ww-budget-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ww-budget-range-inputs .ww-input {
    flex: 1 1 0;
}

.ww-budget-range-sep {
    color: #9ca3af;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .ww-budget-range-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .ww-budget-range-sep {
        display: none;
    }
}

.ww-binding-wrap .ww-label {
    text-transform: none;
}

.ww-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ww-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ww-input,
.ww-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ww-input::placeholder,
.ww-textarea::placeholder {
    color: #999;
}

.ww-input:focus,
.ww-textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: none;
}

select.ww-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

input[type="number"].ww-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"].ww-input::-webkit-outer-spin-button,
input[type="number"].ww-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select option {
    background: #fff;
    color: #1a1a1a;
}

.ww-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 2rem 0;
}

.ww-role-section {
    margin-top: 1rem;
}

.ww-role-section .role-row {
    padding: 0;
    border-radius: 0;
}

.role-row-premium {
    background: transparent;
    border: none;
    transition: all 0.2s;
}

.role-row-premium:hover {
    background: transparent;
    border-color: transparent;
}

.role-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.75rem;
    padding: 0.9rem 1.6rem;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 1.15rem;
    color: #7b7b7b;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.role-select-trigger:hover {
    color: #1a1a1a;
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.role-select-trigger.item-selected {
    color: #1a1a1a;
}

.role-select-trigger i {
    font-size: 1rem;
    opacity: 0.42;
}

.role-select-trigger span {
    line-height: 1.4;
}

@media (min-width: 1025px) {
    .ww-role-section .role-row {
        padding: 0;
        border-radius: 0;
    }

    .ww-role-section .role-row-premium {
        background: transparent;
        border: none;
    }

    .ww-role-section .role-select-trigger {
        min-height: 4rem;
        padding: 1rem 1.75rem;
        border-radius: 1.25rem;
        background: #f5f5f7;
        border: 1px solid rgba(0, 0, 0, 0.12);
        font-size: 1rem;
        color: #767676;
    }

    .ww-role-section .role-select-trigger:hover {
        background: #f5f5f7;
        border-color: rgba(0, 0, 0, 0.15);
    }

    .ww-role-section .role-select-trigger span {
        font-size: 1rem;
        line-height: 1.4;
    }

    .ww-role-section .role-select-trigger i {
        font-size: 1rem;
        opacity: 0.42;
    }
}

.ww-import-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #666;
}

.ww-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
