/* ==========================================================
   REAL GIFTS (ADMIN) — FORM
   File: resources/css/admin/real-gifts-form.css
========================================================== */

:root{
    --rgf-radius: 18px;
    --rgf-radius-sm: 12px;

    --rgf-border: rgba(15, 23, 42, 0.10);
    --rgf-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);

    --rgf-text: #0f172a;
    --rgf-muted: #64748b;

    --rgf-primary: #2563eb;
    --rgf-success: #16a34a;
    --rgf-danger: #ef4444;

    --rgf-glow: rgba(37, 99, 235, 0.18);
}

/* контейнер форми */
.real-gifts-form{
    border-radius: var(--rgf-radius);
    border: 1px solid var(--rgf-border);
    box-shadow: var(--rgf-shadow);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    overflow: hidden;
    position: relative;
}

.real-gifts-form::before{
    content:"";
    position:absolute;
    inset:-2px;
    background: radial-gradient(circle at 20% 10%, rgba(37,99,235,.10), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(124,58,237,.10), transparent 45%),
    radial-gradient(circle at 60% 90%, rgba(34,197,94,.10), transparent 45%);
    pointer-events:none;
}

.real-gifts-form .real-gifts-form-inner{
    position: relative;
    z-index: 1;
}

.real-gifts-form h1,
.real-gifts-form h2,
.real-gifts-form h3,
.real-gifts-form label{
    color: var(--rgf-text);
}

/* лейбли */
.real-gifts-form label{
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
}

/* інпути */
.real-gifts-form .form-control,
.real-gifts-form .custom-select{
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.real-gifts-form .form-control:focus,
.real-gifts-form .custom-select:focus{
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

/* підказки/помилки */
.real-gifts-form .text-danger{
    font-weight: 600;
}
.real-gifts-form .text-muted{
    color: var(--rgf-muted) !important;
}

/* чекбокс */
.real-gifts-form .custom-control{
    padding-left: 1.8rem;
}
.real-gifts-form .custom-control-label{
    font-weight: 700;
    cursor: pointer;
}
.real-gifts-form .custom-control-input:checked ~ .custom-control-label::before{
    background-color: var(--rgf-primary);
    border-color: var(--rgf-primary);
}
.real-gifts-form .custom-control-label::before{
    border-radius: 8px;
}

/* uploader */
.real-gifts-uploader{
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
    align-items: start;
}

@media (max-width: 992px){
    .real-gifts-uploader{
        grid-template-columns: 1fr;
    }
}

.real-gifts-file{
    padding: 14px;
    border-radius: var(--rgf-radius);
    border: 1px dashed rgba(15, 23, 42, 0.18);
    background: rgba(255,255,255,0.75);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.real-gifts-file input[type="file"]{
    width: 100%;
}

.real-gifts-preview{
    border-radius: var(--rgf-radius);
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255,255,255,0.78);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.real-gifts-preview .real-gifts-preview-head{
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(15,23,42,.55);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,.7));
}

.real-gifts-preview .real-gifts-preview-body{
    padding: 12px;
}

.real-gifts-preview img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.real-gifts-preview img:hover{
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.real-gifts-preview .real-gifts-preview-meta{
    margin-top: 10px;
    font-size: 12px;
    color: rgba(15,23,42,.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* кнопки */
.real-gifts-form .btn{
    border-radius: 14px;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.real-gifts-form .btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.real-gifts-form .btn-success{
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.18);
}
.real-gifts-form .btn-success:hover{
    filter: saturate(1.05);
}

.real-gifts-form .btn-light{
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

/* міні-анімація появи */
@keyframes rgfFadeUp{
    from{ opacity: 0; transform: translateY(6px); }
    to{ opacity: 1; transform: translateY(0); }
}
.real-gifts-form .form-group,
.real-gifts-form .form-row{
    animation: rgfFadeUp .22s ease both;
}

.rg-paste-zone{
    border: 1px dashed rgba(15,23,42,.25);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,.7);
    cursor: text;
    outline: none;
}
.rg-paste-zone:focus{
    border-color: rgba(37,99,235,.8);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.rg-paste-zone.is-dragover{
    border-color: rgba(34,211,238,.9);
    box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
