/*
|--------------------------------------------------------------------------
| Withdrawal Page
|--------------------------------------------------------------------------
| Styling για τη φόρμα υπαναχώρησης
|--------------------------------------------------------------------------
*/

.withdrawal-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(15,23,42,.08);
}

.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.withdrawal-form label {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    font-weight: 600;
    color: #334155;
}

.withdrawal-form input,
.withdrawal-form textarea {
    width: 100%;
    padding: .95rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    transition: .25s;
    
}

.withdrawal-form input:focus,
.withdrawal-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.withdrawal-form textarea {
    resize: vertical;
    min-height: 140px;
}

.withdrawal-actions {
    margin-top: .5rem;
}

.withdrawal-alert {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 14px;
    font-weight: 600;
}

.withdrawal-alert-success {
    background: #dcfce7;
    color: #166534;
}

.withdrawal-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.withdrawal-notice{
    margin: 24px 0 32px;

    padding: 18px 22px;

    border-radius: 16px;

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    color: #1e3a8a;

    line-height: 1.7;
}

@media (max-width: 768px) {

    .withdrawal-card {
        padding: 20px;
    }

}

/* ── Photo upload section ────────────────────────────────────────── */

.wd-photo-section {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.wd-photo-label {
    font-weight: 600;
    color: #334155;
    font-size: .95rem;
}

.wd-photo-hint {
    font-size: .82rem;
    color: #64748b;
}

/* Visually hidden; triggered by the add button */
.wd-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wd-photo-controls {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.wd-add-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border: 1.5px dashed #94a3b8;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

.wd-add-btn:hover:not(:disabled) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.wd-add-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.wd-photo-count {
    font-size: .82rem;
    color: #64748b;
    font-weight: 600;
}

/* Preview thumbnails */

.wd-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .25rem;
}

.wd-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #f1f5f9;
    flex-shrink: 0;
}

.wd-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wd-preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, .65);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}

.wd-preview-remove:hover {
    background: #dc2626;
}

.wd-file-error {
    font-size: .875rem;
    padding: .65rem .9rem;
    margin-top: .1rem;
}

/* Responsive */

@media (max-width: 480px) {
    .wd-preview-item {
        width: 76px;
        height: 76px;
    }
}