* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e3a8a;
}

h2 {
    color: #264653;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #264653;
}

input, textarea, select {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.button-container {
    display: flex;
    justify-content: space-between;
}

button {
    padding: 12px;
    background-color: #1e3a8a;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 48%;
}

button:hover {
    background-color: #1e40af;
}

#downloadBtn {
    background-color: #e63946;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#downloadBtn:hover {
    background-color: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.profile-picture-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    border: 2px solid #264653;
}

input[type="file"] {
    display: none;
}

.upload-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1e3a8a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.upload-label i {
    margin-right: 10px;
}

.upload-label:hover {
    background-color: #1e40af;
}

#resume {
    margin-top: 40px;
    padding: 20px;
    background-color: #f1faee;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#resume h2 {
    color: #1e40af;
    margin-bottom: 15px;
}

#resume p {
    margin: 5px 0;
    color: #1e40af;
}

#resume strong {
    color: #1e40af;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.loading-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* Dialog */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.dialog-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dialog-header h3 {
    color: #1e3a8a;
    font-size: 24px;
    margin-bottom: 10px;
}

.dialog-header p {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
}

.dialog-body p {
    color: #333;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Garante que ambos os botões do dialog tenham a mesma largura */
.dialog-buttons > * {
    width: 100%;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-download {
    background: #1e3a8a;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    input, textarea, select {
        font-size: 14px;
    }

    button {
        padding: 10px;
    }

    .dialog-content {
        padding: 20px;
        margin: 20px;
    }

    .dialog-buttons {
        flex-direction: column;
    }
}
