.cursos-doc-form-gallery {
    width: 100%;
    max-width: 806px;
    padding: 24px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    background: transparent;
    flex-wrap: wrap;
}

.cursos-doc-form-gallery-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.cursos-doc-form-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.cursos-doc-form-gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-image-container {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ff4444;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: #ff4444;
    color: white;
}

.cursos-doc-form-upload-box {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cursos-doc-form-upload-box:hover {
    border-color: #666;
}

.cursos-doc-form-upload-box input[type="file"] {
    display: none;
}

#cursos-doc-form-upload-box-img {
    max-width: 100%;
    height: auto;
}

.cursos-doc-form-button {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cursos-doc-form-button input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.cursos-doc-form-button span {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.cursos-doc-form-button:hover span {
    background-color: #218838;
}

.cursos-doc-form-info {
    margin-top: 10px;
}

.cursos-doc-form-info .file-name {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.cursos-doc-form-info .document-download-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.cursos-doc-form-info .document-download-link:hover {
    text-decoration: underline;
}

.cursos-doc-form-doc-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.cursos-doc-form-doc-left {
    flex: 1;
}

.cursos-doc-form-button {
    min-width: 150px;
    text-align: center;
}

.cursos-doc-form-doc-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cursos-doc-form-doc-title {
    color: #515654;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Noto Sans', Arial, sans-serif;
    margin: 0;
}

.cursos-doc-form-doc-desc {
    color: #515654;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Noto Sans', Arial, sans-serif;
    opacity: 0.6;
    margin: 0;
}

.cursos-doc-form-doc-content .file-name {
    color: #515654;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Noto Sans', Arial, sans-serif;
    margin: 0;
}

.cursos-doc-form-doc-content .document-download-link {
    color: #1FA637;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Noto Sans', Arial, sans-serif;
    display: inline-block;
    margin-top: 4px;
}

.cursos-doc-form-doc-content .document-download-link:hover {
    text-decoration: underline;
}

.cursos-doc-form-doc-content .temp-file-name {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Noto Sans', Arial, sans-serif;
    margin: 0;
    font-style: italic;
}

.gallery-image-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.gallery-image-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-image-link:hover::after {
    opacity: 1;
}

.gallery-image-link::before {
    content: '\f316';
    font-family: dashicons;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 32px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.gallery-image-link:hover::before {
    opacity: 1;
}

@media screen and (max-width: 1200px) {
    .cursos-doc-form-gallery-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .cursos-doc-form-gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .cursos-doc-form-gallery-preview {
        grid-template-columns: 1fr;
    }
}

.cursos-doc-form-submit {
    width: 100%;
    max-width: 290px;
    min-height: 52px;
    background: #1FA637;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Noto Sans', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    padding: 12px 24px;
    position: relative;
}

.cursos-doc-form-submit:hover {
    background: #188d2b;
}

.cursos-doc-form-submit.loading {
    background: #188d2b;
    cursor: not-allowed;
    opacity: 0.8;
}

.cursos-doc-form-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: translate(-50%, -50%) rotate(0turn);
    }
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

.cursos-doc-form-submit.loading span {
    visibility: hidden;
}

.cursos-doc-form-download-all {
    background: #0B2E3F !important;
}

.cursos-doc-form-download-all:hover {
    background: #0a2533 !important;
}

@media screen and (max-width: 768px) {
    .cursos-doc-info-inner {
        flex-direction: column;
    }
}

.cursos-doc-back {
    margin-bottom: 2rem;
}

.cursos-doc-back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cursos-doc-back-button:hover {
    background-color: #e0e0e0;
    color: #000;
}

.cursos-doc-back-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
} 