@font-face {
    font-family: 'Redonda VF';
    src: url('Redonda-VF.woff2') format('woff2'),
         url('Redonda-VF.woff') format('woff'),
         url('Redonda-VF.ttf') format('truetype');
    font-display: swap;
    font-weight: 100 900;
    font-style: normal;
    font-variation-settings: 'wght' 100 900;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Redonda VF', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: #000;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
}

.website {
    font-size: 16px;
    opacity: 0.9;
}

.website-link {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.website-link:hover {
    opacity: 0.7;
}

.desktop-only-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sidebar {
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.preview-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.sidebar h2 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 18px;
}

/* Form Styles */
.signature-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Redonda VF', sans-serif;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Estilo específico para o select de formato (campo oculto por padrão) */
select#downloadFormat {
    padding: 12px 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6600;
}

.form-group input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: 'Redonda VF', sans-serif;
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Estilos para indicadores de status da URL do OneMoving */
.url-success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 1px #10b981 !important;
}

.url-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 1px #ef4444 !important;
}

.onemoving-success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 1px #10b981 !important;
}

.onemoving-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 1px #ef4444 !important;
}

/* Indicador visual para URL do OneMoving ativa */
.form-help {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-help::before {
    content: "✅ ";
    color: #10b981;
    font-weight: bold;
}

/* Estilo especial para quando a URL do OneMoving está ativa */
.onemoving-active .form-help::before {
    content: "🌐 ";
    color: #3b82f6;
    font-weight: bold;
}

.form-group input[type="url"]::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

/* Animação para feedback visual */
.form-group input[type="url"] {
    transition: all 0.3s ease;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #ff6600;
    background-color: #fff9f5;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #ff6600;
    background-color: #ff6600;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ span:last-child {
    color: #ff6600;
    font-weight: 600;
}

/* Additional Fields */
.additional-fields {
    border-top: 2px solid #e1e5e9;
    padding-top: 20px;
    margin-top: 20px;
}

.additional-fields .form-group {
    margin-bottom: 15px;
}

.btn-download {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.btn-download:hover:not(:disabled) {
    background: #e55a00;
}

.btn-download:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Preview Section */
.signature-preview {
    border: 2px dashed #ddd;
    border-radius: 8px;
    min-height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 20px;
}

.preview-placeholder {
    text-align: center;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.preview-placeholder p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #888;
    font-family: 'Redonda VF', sans-serif;
}

/* Signature Template - Classes criadas dinamicamente no JavaScript */
.signature-template {
    width: 834px !important;
    height: 362px !important;
    position: relative !important;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
}

.signature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    will-change: transform;
    transform: translateZ(0);
}

.signature-name-overlay, 
.signature-department-overlay,
.mobile-overlay,
.signature-email-overlay {
    position: absolute !important;
    margin: 0px;
    padding: 0;
    line-height: 1.2;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-family: 'Redonda VF', Arial, sans-serif !important;
    font-display: block !important;
}

.signature-name-overlay {
    position: absolute;
    top: 3.5%;
    left: 40%;
    color: #fff;
    font-size: 24px;
    font-weight: 900 !important;
    font-family: 'Redonda VF', sans-serif;
    white-space: nowrap;
    z-index: 3;
    font-variation-settings: 'wght' 900;
}

.signature-department-overlay {
    position: absolute;
    top: 4%;
    right: 5%;
    padding-top: 3px;
    color: #fff;
    font-size: 20px;
    font-weight: 900 !important;
    font-family: 'Redonda VF', sans-serif;
    white-space: nowrap;
    z-index: 3;
    font-variation-settings: 'wght' 600;
    letter-spacing: 0.5px;
    word-spacing: 4px;
}

.mobile-overlay {
    position: absolute;
    top: 19%;
    left: 3.2%;
    width: 35%;
    font-weight: 400;
    font-size: 10px;
    z-index: 3;
    color: #000;
    padding-top: 30px;
}

.signature-email-overlay {
    position: absolute;
    top: 24.5%;
    right: 4%;
    width: 35%;
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    z-index: 3;
    color: #000;
    padding-top: 7px;
    transform: translateX(-287px);
}

/* Campos adicionais para assinatura dupla */
.mobile-overlay-2 {
    position: absolute;
    top: 31%;
    left: 3.2%;
    width: 35%;
    font-weight: 400;
    font-size: 12px;
    z-index: 3;
    color: #000;
}

.email-overlay-2 {
    position: absolute;
    top: 31%;
    right: 4%;
    width: 35%;
    text-align: left;
    font-weight: 400;
    font-size: 12px;
    z-index: 3;
    color: #000;
    transform: translateX(-287px);
}

.contact-item-overlay {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.contact-label-overlay {
    font-weight: 600;
    color: #000;
    font-size: 10px;
    font-family: 'Redonda VF', sans-serif;
}

.contact-value-overlay {
    color: #000;
    font-size: 16px;
    font-family: 'Redonda VF', sans-serif;
    font-weight: 400;
    transform: translateY(100%);
    padding-top: 10px;
}

/* Override contact-value-overlay for specific overlays */
.mobile-overlay .contact-value-overlay {
    font-size: 10px !important;
}

.signature-email-overlay .contact-value-overlay {
    font-size: 10px !important;
}

.mobile-overlay-2 .contact-value-overlay {
    font-size: 10px !important;
}

.email-overlay-2 .contact-value-overlay {
    font-size: 10px !important;
}

/* Layout fixo otimizado para desktop - sem versão mobile */
.main-content {
    flex-direction: row;
}

.sidebar {
    width: 320px;
}

.preview-container {
    width: auto;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #e1e5e9;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-family: 'Redonda VF', sans-serif;
}

.footer-link {
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: #e55a00;
}

.footer-logo {
    height: 15px;
    width: auto;
    margin-left: 5px;
    vertical-align: middle;
}

.footer-logo-onemoving {
    margin-left: 8px;
    margin-right: 4px;
    height: 18px;
}

.footer-label {
    font-weight: 600;
    margin-right: 4px;
}

.footer-divider {
    margin: 0 8px;
    color: #e5e7eb;
}

/* Sem ajustes adicionais para telas muito pequenas - uso recomendado em desktop */

/* Smooth transitions for better UX */
.signature-overlay > div {
    transition: opacity 0.2s ease-in-out;
    will-change: opacity;
} 

 .signature-content {
     background-image: url('image.jpg');
     background-size: contain;
     background-position: center;
     background-repeat: no-repeat;
     position: relative;
     width: 100%;
     height: 362px;
     overflow: hidden;
 } 