/* ===== WRAPPER ===== */
.gdrive-form-wrapper {
    max-width: 950px;
    margin: 40px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    box-sizing: border-box;
}

/* ===== GRID ===== */
.gdrive-form {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: stretch !important;
    margin: 0;
    padding: 0;
}

/* ===== LEWA KOLUMNA ===== */
.gdrive-form-col-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0 !important;
}

/* ===== BOXY ===== */
.gdrive-box {
    background: #1e1e1e;
    border-radius: 14px;
    padding: 22px 20px;
    border: 1px solid #444444;
    flex: 1 !important;
}

.gdrive-box-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 32px 0;
    text-align: center;
}

/* ===== PRAWA KOLUMNA ===== */
.gdrive-form-col-right {
    background: #1e1e1e;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #444444;
    display: flex;
    flex-direction: column;
}

/* ===== ETYKIETY PÓL ===== */
.gdrive-field-label {
    display: block;
    font-size: 14px;
    color: #d1d1d1;
    margin-top: 18px !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
}

/* ===== POLA FORMULARZA ===== */
.gdrive-form-wrapper input[type="text"],
.gdrive-form-wrapper input[type="email"],
.gdrive-form-wrapper select,
.gdrive-form-wrapper textarea {
    display: block !important;
    width: 100% !important;
    padding: 10px 12px !important;
    background: #2d2d2d !important;
    border: 1px solid #444444 !important;
    color: #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    font-family: inherit !important;
}

.gdrive-form-wrapper input[type="text"]:focus,
.gdrive-form-wrapper input[type="email"]:focus,
.gdrive-form-wrapper select:focus,
.gdrive-form-wrapper textarea:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15) !important;
    background: #222228 !important;
}

.gdrive-form-wrapper input:invalid:focus,
.gdrive-form-wrapper textarea:invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239,68,68,0.15) !important;
}

.gdrive-form-wrapper input::placeholder,
.gdrive-form-wrapper textarea::placeholder {
    color: #929292 !important;
}

/* ===== SELECT ===== */
.gdrive-form-wrapper select {
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

.gdrive-form-wrapper select option {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
}

/* ===== TEXTAREA ===== */
.gdrive-form-wrapper textarea {
    resize: vertical !important;
    min-height: 110px !important;
}

/* ===== DROP ZONE ===== */
.drop-zone {
    border: 2px dashed #444444;
    border-radius: 12px;
    background: #2d2d2d;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.drop-zone:hover {
    border-color: #ffba65;
    background: #242329;
}

.drop-zone-icon {
    width: 54px;
    height: 54px;
    background: rgba(59,130,246,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.drop-zone-icon svg {
    width: 26px;
    height: 26px;
    stroke: #3b82f6;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drop-zone p {
    margin: 0 0 6px !important;
    color: #e0e0e0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
}

.drop-zone-info {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    line-height: 1.5;
}

/* ===== SEKCJA LABEL ===== */
.gdrive-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #d1d1d1;
    margin: 10px 0 10px 0;
    display: block;
}

/* ===== PASEK POSTĘPU ===== */
#contact-gdrive-bar-container {
    width: 100%;
    background: #222226;
    border-radius: 4px;
    overflow: hidden;
    height: 4px;
    margin: 0 0 12px 0;
    display: none;
}

#contact-gdrive-bar {
    width: 0%;
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
    font-size: 0;
    color: transparent;
}

/* ===== LICZNIK + TOGGLE ===== */
#contact-file-count-info {
    background: #2d2d2d;
    border: 1px solid #444444;
    border-radius: 5px;
    padding: 6px 12px;
    color: #d1d1d1;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#gdrive-toggle-list {
    text-decoration: none !important;
    background: #2d2d2d !important;
    border: 1px solid #444444 !important;
    border-radius: 5px !important;
    padding: 6px 12px !important;
    color: #3b82f6;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: 4px;
}

#gdrive-toggle-list:hover {
    color: #60a5fa;
    text-decoration: none !important;
}

/* ===== RESET BTN ===== */
#contact-gdrive-reset {
    text-decoration: none !important;
    background: #2d2d2d !important;
    border: 1px solid #444444 !important;
    border-radius: 5px !important;
    padding: 6px 12px !important;
    color: #ef4444 !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-left: auto !important;
}

#contact-gdrive-reset:hover {
    color: #f87171 !important;
    text-decoration: none !important;
}

/* ===== LISTA PLIKÓW ===== */
#gdrive-file-list-wrapper {
    display: none;
    margin-bottom: 12px;
    margin-top: 4px;
}

#gdrive-file-list-wrapper.is-open {
    display: block;
}

#gdrive-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: calc(6 * 36px + 5 * 5px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 #252528;
}

#gdrive-file-list::-webkit-scrollbar {
    width: 4px;
}

#gdrive-file-list::-webkit-scrollbar-track {
    background: #252528;
    border-radius: 4px;
}

#gdrive-file-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

#gdrive-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #252528;
    border: 1px solid #333336;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: #bbb;
    gap: 8px;
    min-height: 36px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.gdrive-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.gdrive-delete-single {
    background: none !important;
    border: none !important;
    color: #555;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    text-decoration: none !important;
}

.gdrive-delete-single:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1) !important;
    text-decoration: none !important;
}

.gdrive-delete-single:disabled {
    color: #333;
    cursor: not-allowed;
}

/* ===== CHECKBOX ===== */
.consent-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 12px !important;
    color: #c1c1c1 !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
}

.consent-label input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    margin: 2px 0 0 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    top: 8px !important;
    accent-color: #3b82f6 !important;
}

/* ===== PRZYCISK WYŚLIJ ===== */
#submit-form {
    width: 100% !important;
    padding: 15px !important;
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

#submit-form:hover { background: #2563eb !important; }

#submit-form:disabled {
    background: #222226 !important;
    color: #555 !important;
    cursor: not-allowed !important;
}

/* ===== KOMUNIKATY ===== */
#form-msg {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
}

#form-msg p {
    margin: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: rgba(40,167,69,0.1);
}

/* ===== WYMAGANIA ===== */
.gdrive-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gdrive-requirements ul li {
    font-size: 12px;
    color: #555;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.gdrive-requirements ul li::before {
    content: '✓';
    color: #3b82f6;
    flex-shrink: 0;
    font-size: 11px;
    margin-top: 1px;
}

/* ===== HONEYPOT ===== */
.gdrive-hp {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 640px) {
    .gdrive-form {
        grid-template-columns: 1fr;
    }
}