/* Signup Role Selection Styles */
.role-selection-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.role-selection-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.role-optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.role-selection-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.role-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.role-card {
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.role-card:hover {
    border-color: var(--role-border);
    background: var(--role-bg);
}

.role-card.selected {
    border-color: var(--role-color);
    background: var(--role-bg);
    box-shadow: 0 0 0 1px var(--role-border);
}

.role-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.role-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.role-card.selected .role-card-title {
    color: var(--role-color);
}

.role-card-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.role-form-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* Role Form Styles (shared across forms) */
.role-form-group {
    margin-bottom: 1rem;
}

.role-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.role-form-label .required {
    color: var(--color-error);
    margin-left: 0.15rem;
}

.role-form-input,
.role-form-select,
.role-form-textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.role-form-input:focus,
.role-form-select:focus,
.role-form-textarea:focus {
    border-color: var(--color-accent-2);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.role-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.role-form-select option,
select.role-form-input option {
    background: #1a1a2e;
    color: var(--color-text);
}

select.role-form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.role-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.role-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.role-form-hint {
    font-size: 0.72rem;
    margin-top: 0.35rem;
    min-height: 1rem;
}

.role-form-hint.success {
    color: var(--color-success);
}

.role-form-hint.error {
    color: var(--color-error);
}

/* Category Selector */
.category-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.category-chip input {
    display: none;
}

.category-chip span {
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    transition: all 0.2s ease;
}

.category-chip input:checked + span {
    color: var(--color-accent-2);
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--color-accent-2);
}

.category-chip:hover span {
    border-color: var(--color-border-hover);
}

/* Builtin Systems */
.builtin-system-group {
    margin-bottom: 0.75rem;
}

.builtin-system-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.builtin-system-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* File Upload */
.file-upload-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.file-upload-btn {
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent-2);
    background: transparent;
    border: 1px solid var(--color-accent-2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.file-upload-btn:hover {
    background: rgba(6, 182, 212, 0.1);
}

.file-name {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
}

.attachment-list,
.photo-preview-list {
    margin-top: 0.5rem;
}

.attachment-item,
.photo-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border-radius: 6px;
    margin-bottom: 0.3rem;
}

.attachment-remove {
    background: none;
    border: none;
    color: var(--color-error);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
}

/* Pledge Section */
.pledge-section {
    margin-bottom: 1rem;
}

.pledge-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent-1);
    margin-bottom: 1rem;
    text-align: center;
}

.pledge-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pledge-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

.pledge-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent-1);
    white-space: nowrap;
}

.pledge-keyword {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.pledge-content p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.pledge-confirm {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.pledge-confirm-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.pledge-confirm-desc strong {
    color: var(--color-accent-1);
}

/* Responsive */
@media (max-width: 640px) {
    .role-form-row {
        grid-template-columns: 1fr;
    }
}
