.secure-doc-form {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

@media (max-width: 767px) {
    .secure-doc-form {
        margin: 0 auto;
    }
}

.secure-doc-field label {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 20px;
}

.secure-doc-field input {
    width: 100%;
    padding: 12px;
    border: none !important;
    border-bottom: 1px solid #1D1D1B !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    font-size: 16px;
}

.secure-doc-submit {
    display: inline-block;
    padding: 14px 30px;
    background: transparent !important;
    background-color: transparent !important;
    color: #1D1D1B !important;
    border: 2px solid #333;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    align-self: center;
}

.secure-doc-submit:hover,
.secure-doc-submit:focus,
.secure-doc-submit:active {
    background: transparent !important;
    background-color: transparent !important;
    color: #1D1D1B !important;
}

.secure-doc-error {
    background-color: #FFE400 !important;
    color: #221E1B !important;
    padding: 12px;
    border-radius: 0 !important;
}

.secure-doc-blocked,
.secure-doc-locked {
    background-color: #FFE400 !important;
    color: #221E1B !important;
    padding: 20px;
    border-radius: 0 !important;
    text-align: center;
}

/* ============================================
   Files Display (Frontend)
   ============================================ */

.secure-doc-files-container {
    width: 100%;
    margin: 0 auto;
}

.secure-doc-category {
    margin-bottom: 80px;
}

.secure-doc-category-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1D1D1B;
    text-align: left;
}

.secure-doc-files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.secure-doc-files-grid > a {
    flex: 0 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

@media (max-width: 1024px) {
    .secure-doc-files-grid > a {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

.secure-doc-file-card {
    background-color: #1D1D1B;
    border-radius: 0;
    padding: 25px;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    min-height: 100px;
    cursor: pointer;
}

.secure-doc-file-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secure-doc-file-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.secure-doc-file-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.secure-doc-no-files {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

@media (max-width: 880px) {
    .secure-doc-category {
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .secure-doc-category {
        margin-bottom: 40px;
    }

    .secure-doc-files-grid {
        gap: 20px;
    }

    .secure-doc-files-grid > a {
        flex: 0 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .secure-doc-category:last-child {
        margin-bottom: 0;
    }

    .secure-doc-files-grid > a {
        flex: 0 1 100%;
        max-width: 100%;
    }
}
