/* =====================================================
   COMPLETE FORM + BUTTON THEME — FINAL STABLE VERSION
   mint #F2FBF7 • soft shadows • mobile friendly
   checkbox safe • white button text
   ===================================================== */


/* ======================
   COLORS
   ====================== */
:root {
    --accent-bg: #F2FBF7;
    --accent-bg-soft: #E6F7F1;
    --accent-border: #CFE9DF;
    --accent-strong: #38BFA3;
    --accent-shadow: rgba(56,191,163,0.18);
    --text-main: #111;
}


/* ======================
   BLACK TEXT (default)
   ====================== */
#saveFilesnames,
#saveFilesnames * {
    color: var(--text-main);
}


/* ======================
   MAIN FORM CARD
   ====================== */
#saveFilesnames {
    max-width: 820px;
    margin: 40px auto;
    padding: 32px;

    background: linear-gradient(135deg, #ffffff, var(--accent-bg));
    border: 1px solid var(--accent-border);
    border-radius: 18px;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.04),
        0 12px 40px rgba(0,0,0,0.06);
}


/* ======================
   LABELS
   ====================== */
#saveFilesnames label {
    font-weight: 600;
}

#saveFilesnames small {
    color: #6b7280;
}


/* =====================================================
   INPUTS (checkbox safe!)
   ===================================================== */
#saveFilesnames input:not([type="checkbox"]),
#saveFilesnames textarea,
#saveFilesnames select {
    width: 100%;
    padding: 12px 14px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    transition: .15s;
}

/* focus glow */
#saveFilesnames input:not([type="checkbox"]):focus,
#saveFilesnames textarea:focus,
#saveFilesnames select:focus {
    outline: none;
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px var(--accent-shadow);
}


/* ======================
   DETAILS SECTION
   ====================== */
#detailsForm {
    margin-top: 24px;
    padding: 22px;

    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
}


/* ======================
   UPLOAD GRID
   ====================== */
.uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}


/* ======================
   DROPZONE CARDS
   ====================== */
.dropzone {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 140px;

    background: linear-gradient(135deg, var(--accent-bg), var(--accent-bg-soft));
    border: 2px dashed var(--accent-border);
    border-radius: 16px;

    box-shadow:
        0 6px 16px rgba(0,0,0,0.04),
        0 10px 26px var(--accent-shadow);

    cursor: pointer;
    transition: .18s ease;
}

.dropzone:hover {
    border-color: var(--accent-strong);
    transform: translateY(-3px);
}

.preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    background: #fff;
}

.hint {
    font-size: .9rem;
    text-align: center;
}


/* =====================================================
   CHECKBOX — PURE DEFAULT (NO REPOSITIONING)
   ===================================================== */
.checkbox-label {
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}


/* =====================================================
   BUTTON TEXT COLORS
   ===================================================== */

/* Zapisz button */
.submit-btn,
.submit-btn:hover,
.submit-btn:focus,
.submit-btn:active {
    color: #ffffff !important;
}

/* Szukaj zguby button (text + svg arrows) */
#findLostButton .cus-btn-2,
#findLostButton .cus-btn-2 span,
#findLostButton .cus-btn-2 svg,
#findLostButton .cus-btn-2 path {
    color: #ffffff !important;
    fill: #ffffff !important;
}


/* ======================
   MOBILE (sizes only)
   ====================== */
@media (max-width: 640px) {

    #saveFilesnames {
        margin: 12px;
        padding: 16px;
        border-radius: 14px;
    }

    .uploads {
        gap: 10px;
    }

    .dropzone {
        min-height: 100px;
        border-radius: 12px;
    }

    .preview {
        border-radius: 10px;
    }

    #saveFilesnames input:not([type="checkbox"]),
    #saveFilesnames textarea,
    #saveFilesnames select {
        padding: 10px 12px;
        border-radius: 10px;
    }

    #detailsForm {
        border-radius: 12px;
        padding: 16px;
    }
}
