/**
 * ID Upload Page Specific Styles
 */

/* ===== LANGUAGE SELECTION ===== */
.language-cards {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
    width: 100%;
}

.language-option {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark);
    flex: 1;
    max-width: calc(50% - 15px);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    text-align: center;
    cursor: pointer;
}

.language-option:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(242,140,0,.15);
}

.language-flag {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.language-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.language-desc {
    font-size: 14px;
    color: var(--dark);
}

/* ===== UPLOAD FORM STYLES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    color: var(--white);
}

.help-banner {
    background: var(--cream);
    color: var(--black);
    padding: 30px 24px;
    border-radius: 12px;
    margin: 24px 0 34px;
    box-shadow: 0 8px 24px rgba(255, 242, 209, 0.2);
    text-align: center;
}

.help-banner .phone {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .5px;
}

.help-banner .phone a {
    color: var(--brand);
    text-decoration: none;
}

.help-banner .phone a:hover {
    color: var(--brand-dark);
}

.card {
    background: var(--white);
    color: var(--dark);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.full {
    grid-column: 1/-1;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
input:not([type]),
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #111;
    height: auto;
    min-height: 48px;
}

.hint {
    color: #555;
    font-size: 13px;
    margin-top: 6px;
}

/* ===== DROPZONE STYLES ===== */
.dropzone {
    border: 2px dashed #bbb;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    background: #fafafa;
    transition: all .15s ease;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    cursor: pointer;
}

.dropzone.dragover {
    border-color: var(--brand);
    background: #fff8ec;
}

.drop-hint {
    color: #444;
    font-size: 14px;
}

.file-list {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.remove-file {
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.remove-file:hover {
    background: #c82333;
}

/* ===== PDF PREVIEW ===== */
.pdf-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 6px;
}

.pdf-text {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
}

/* ===== DYNAMIC DOCUMENT SECTIONS ===== */
.add-doc-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.add-doc-button:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.plus-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.dynamic-doc-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
    position: relative;
}

.doc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.doc-section-title {
    font-weight: 500;
    color: #333;
    flex-grow: 1;
}

.remove-doc-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease;
    margin-left: 10px;
}

.remove-doc-btn:hover {
    background: #c82333;
}

/* ===== BUTTONS ===== */
.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--black);
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-ghost {
    background: #eee;
    color: #111;
}

.note {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

.success {
    color: var(--success);
    font-weight: 700;
    display: none;
}

.error {
    color: var(--error);
    font-weight: 700;
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .title {
        font-size: 30px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .language-cards {
        flex-direction: column;
        gap: 20px;
    }

    .language-option {
        padding: 30px 80px;
        min-width: 300px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .language-option {
        padding: 40px 40px;
        min-width: auto;
        width: 100%;
        height: 280px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .language-flag {
        font-size: 40px;
    }

    .language-name {
        font-size: 20px;
    }
}

/* ===== DOCUMENT DROPDOWN ===== */
.doc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.doc-dropdown.show {
    display: block;
}

.doc-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.doc-option:hover {
    background: #f8f9fa;
}

.doc-option:last-child {
    border-bottom: none;
}

/* ===== FOOTER STYLES (Black Background Override) ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.footer-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--white);
}

.footer-content p {
    color: var(--white);
}

.footer-contact {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.footer-contact:hover {
    color: var(--brand-dark);
}

.copyright-footer {
    background: var(--black);
    color: var(--white);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    font-size: 14px;
    color: var(--white);
}

.copyright-content p {
    color: var(--white);
}
