@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Container Principal - Liquid Glass */
.fr-ouro-container {
    font-family: 'Montserrat', sans-serif;
    background: rgba(12, 10, 9, 0.85);
    color: #f5f5f4;
    max-width: 620px;
    margin: 40px auto;
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(197, 168, 128, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(197, 168, 128, 0.08);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.fr-ouro-container::before {
    content: '';
    position: absolute;
    top: -40%; left: -40%; width: 180%; height: 180%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.06) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
    animation: frLiquidGlass 15s infinite alternate ease-in-out;
}
@keyframes frLiquidGlass {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* Header & Barra de Progresso */
.fr-ouro-header { text-align: center; margin-bottom: 40px; position: relative; z-index: 1; }
.fr-ouro-logo { max-width: 220px; height: auto; margin-bottom: 25px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.fr-ouro-header h2 { font-family: 'Cormorant', serif; font-weight: 500; color: #d4af37; font-size: 32px; margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.fr-ouro-header p { font-size: 13px; color: #a8a29e; margin: 0; font-weight: 300; letter-spacing: 1px; }
/* Rotating text */
.fr-rotating-text { position: relative; display: block; }
.fr-rotating-text .fr-text-slide { display: block; position: absolute; width: 100%; top: 0; left: 0; opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s ease; pointer-events: none; }
.fr-rotating-text .fr-text-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }

.fr-ouro-header h2.fr-rotating-text { min-height: 1.3em; }
.fr-ouro-header p.fr-rotating-text { min-height: 1.5em; }

/* YouTube premium player */
.fr-yt-player { position: relative; width: 100%; border-radius: 12px; overflow: hidden; margin: 0 0 28px 0; cursor: pointer; background: #000; aspect-ratio: 16/9; z-index: 1; opacity: 0.5; animation: frYtFadeIn 2.5s ease forwards; }
@keyframes frYtFadeIn { to { opacity: 1; } }
.fr-yt-player .fr-yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-yt-player .fr-yt-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; background: transparent; border: none; cursor: pointer; transition: transform 0.2s; padding: 0; }
.fr-yt-player .fr-yt-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
.fr-yt-player .fr-yt-play-btn svg { width: 68px; height: 48px; }
.fr-yt-player .fr-yt-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.fr-ouro-progress-wrapper { background: rgba(255, 255, 255, 0.05); height: 3px; border-radius: 2px; margin-bottom: 45px; position: relative; z-index: 1; }
.fr-ouro-progress-bar { height: 100%; background: linear-gradient(90deg, #d4af37 0%, #a38560 100%); border-radius: 2px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 15px rgba(212, 175, 55, 0.6); }
.fr-ouro-steps-indicator { position: absolute; top: -3px; left: 0; width: 100%; display: flex; justify-content: space-between; pointer-events: none; }
.fr-ouro-steps-indicator .step-dot { width: 8px; height: 8px; border-radius: 50%; background: #2d2d2d; border: 1px solid #44403c; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.fr-ouro-steps-indicator .step-dot.active { background: #d4af37; border-color: #d4af37; box-shadow: 0 0 10px rgba(212, 175, 55, 0.8); transform: scale(1.3); }
.fr-ouro-steps-indicator .step-dot.completed { background: #d4af37; border-color: #d4af37; }

/* Steps & Inputs */
.fr-ouro-step { display: none; position: relative; z-index: 1; }
.fr-ouro-step.active { display: block; animation: frFadeIn 0.5s ease-out; }
@keyframes frFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fr-ouro-step h3 { font-family: 'Cormorant', serif; font-size: 24px; color: #d4af37; margin-bottom: 30px; font-weight: 500; letter-spacing: 1.5px; border-bottom: 1px solid rgba(197, 168, 128, 0.15); padding-bottom: 12px; }
.fr-ouro-input-group { margin-bottom: 30px; position: relative; }
.fr-ouro-input-group label { display: block; font-size: 13px; color: #f5f5f4; margin-bottom: 10px; font-weight: 500; letter-spacing: 0.5px; }
.fr-ouro-input-group label .required { color: #d4af37; margin-left: 3px; }
.fr-field-desc { display: block; font-size: 11px; color: #a8a29e; margin-top: 6px; font-weight: 300; line-height: 1.4; }
.fr-ouro-input-group input[type="text"], .fr-ouro-input-group input[type="tel"], .fr-ouro-input-group input[type="email"], .fr-ouro-input-group input[type="number"], .fr-ouro-input-group textarea, .fr-ouro-input-group select {
    width: 100%; background: rgba(20, 18, 16, 0.8); border: 1px solid #44403c; border-radius: 8px; padding: 14px 18px; color: #ffffff !important; -webkit-text-fill-color: #ffffff; caret-color: #d4af37; font-family: inherit; font-size: 14px; box-sizing: border-box; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fr-ouro-input-group input:focus, .fr-ouro-input-group textarea:focus, .fr-ouro-input-group select:focus { outline: none; border-color: #d4af37; background: rgba(28, 25, 23, 0.9); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
/* Neutraliza o autofill do Chrome (fundo/texto escuros sobre fundo escuro) */
.fr-ouro-input-group input:-webkit-autofill,
.fr-ouro-input-group input:-webkit-autofill:hover,
.fr-ouro-input-group input:-webkit-autofill:focus,
.fr-ouro-input-group input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(28, 25, 23, 0.95) inset;
    box-shadow: 0 0 0 1000px rgba(28, 25, 23, 0.95) inset;
    transition: background-color 9999s ease-in-out 0s;
}
.fr-ouro-input-group textarea { height: 100px; resize: vertical; }

/* Radio & Checkbox Otimizados */
.fr-ouro-options-grid { display: flex; flex-direction: column; gap: 12px; }
.fr-option-label {
    display: flex; align-items: center; padding: 16px 20px; background: rgba(20, 18, 16, 0.6); border: 1px solid #44403c; border-radius: 10px; cursor: pointer; transition: all 0.25s ease; user-select: none; font-size: 14px; color: #e7e5e4; box-sizing: border-box; min-height: 52px;
}
.fr-option-label:hover { border-color: rgba(212, 175, 55, 0.5); background: rgba(28, 25, 23, 0.8); transform: translateY(-1px); }
.fr-option-label:active { transform: translateY(0); }
.custom-radio, .custom-checkbox { width: 20px; height: 20px; border: 2px solid #57534e; margin-right: 14px; display: inline-block; position: relative; transition: all 0.25s ease; box-sizing: border-box; flex-shrink: 0; }
.custom-radio { border-radius: 50%; }
.custom-checkbox { border-radius: 4px; }
.fr-option-label input[type="radio"], .fr-option-label input[type="checkbox"] { display: none; }
.fr-option-label input[type="radio"]:checked + .custom-radio { border-color: #d4af37; }
.fr-option-label input[type="radio"]:checked + .custom-radio::after { content: ''; position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; background: #d4af37; border-radius: 50%; box-shadow: 0 0 8px #d4af37; }
.fr-option-label input[type="checkbox"]:checked + .custom-checkbox { border-color: #d4af37; background: #d4af37; }
.fr-option-label input[type="checkbox"]:checked + .custom-checkbox::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #0c0a09; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fr-option-label:has(input:checked) { border-color: #d4af37; background: rgba(212, 175, 55, 0.08); box-shadow: 0 0 15px rgba(212, 175, 55, 0.05); color: #ffffff; }

/* Controles de Navegação & Botões */
.fr-ouro-navigation { display: flex; justify-content: space-between; margin-top: 45px; position: relative; z-index: 1; }
.fr-ouro-navigation button { font-family: inherit; font-weight: 600; padding: 14px 32px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); letter-spacing: 0.5px; }
.fr-ouro-container .btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #a38560 100%) !important;
    color: #0c0a09 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25) !important;
    margin-left: auto;
    outline: none !important;
}
.fr-ouro-container .btn-primary:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4) !important; }
.fr-ouro-container .btn-primary:active { transform: translateY(0) !important; }
.fr-ouro-container .btn-secondary { background: transparent !important; color: #a8a29e !important; border: 1px solid #44403c !important; box-shadow: none !important; outline: none !important; }
.fr-ouro-container .btn-secondary:hover { border-color: #d4af37 !important; color: #d4af37 !important; background: rgba(212, 175, 55, 0.03) !important; }

/* Mensagens de Validação, Cal.com & Responsivo */
.error-msg { color: #f87171; font-size: 11px; margin-top: 8px; display: none; font-weight: 400; animation: frShake 0.3s ease-in-out; }
@keyframes frShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.fr-ouro-input-group.has-error input, .fr-ouro-input-group.has-error textarea, .fr-ouro-input-group.has-error select, .fr-ouro-input-group.has-error .fr-option-label, .fr-ouro-input-group.has-error .fr-ouro-scheduling-container {
    border-color: #f87171; background: rgba(248, 113, 113, 0.03);
}
.fr-ouro-input-group.has-error .error-msg { display: block; }
.fr-cal-desc { color: #a8a29e; font-size: 14px; text-align: center; margin-bottom: 30px; line-height: 1.6; }
@media (max-width: 600px) {
    .fr-ouro-container { padding: 40px 25px; margin: 20px 15px; border-radius: 16px; }
    .fr-ouro-header h2 { font-size: 26px; }
    .fr-ouro-navigation { flex-direction: column-reverse; gap: 15px; }
    .fr-ouro-navigation button { width: 100%; }
    .btn-primary { margin-left: 0; }
}
