* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg,rgb(197, 203, 226) 0%,rgb(218, 207, 230) 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.form-container.etapa-3-expanded {
    max-width: 1200px;
}

.form-header {
    background: linear-gradient(135deg, #F5140A 0%, #F54311 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.form-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.progress-container {
    padding: 20px;
    background: #f8f9fa;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.step.active {
    border-color: #F5140A;
    background: #F5140A;
    color: white;
}

.step.completed {
    border-color: #F56B11;
    background: #F56B11;
    color: white;
}

.step-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #6c757d;
    white-space: nowrap;
}

.step.active .step-label {
    color: #F5140A;
    font-weight: 600;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: #F5140A;
    transition: width 0.3s ease;
    z-index: 1;
}

.step-text {
    text-align: center;
    padding-top: 10px;
    color: #6c757d;
    font-size: 0.8rem;
}

.form-body {
    padding: 25px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 8px;
}

.input-group .form-control:focus {
    border-radius: 8px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #F5140A;
    z-index: 3;
    font-size: 0.9rem;
}

.form-control {
    padding: 12px 12px 12px 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #F5140A;
    box-shadow: 0 0 0 0.2rem rgba(245, 20, 10, 0.25);
    background: white;
}

.btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #F5140A 0%, #F54311 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d41209 0%, #e03a0f 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 20, 10, 0.3);
}

.btn-secondary {
    background: #F59D84;
    color: white;
}

.btn-secondary:hover {
    background: #e08a6f;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #F56B11 0%, #F59311 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #e05a0f 0%, #e0830f 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 107, 17, 0.3);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-actions.etapa-1 {
    justify-content: flex-end;
}

.form-actions.etapa-2,
.form-actions.etapa-3,
.form-actions.etapa-4 {
    justify-content: space-between;
}

.color-preview-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.color-selection {
    flex: 0 0 300px;
}

.preview-section {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    border-left: 4px solid #F5140A;
    transform: translateY(-20px);
}

.color-customization-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
}

.color-picker-section {
    margin-bottom: 20px;
}

.color-picker-section:last-child {
    margin-bottom: 0;
}

.color-picker {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.color-picker:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.etapa-3-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.etapa-3-layout .form-container {
    flex: 1;
    max-width: none;
    display: flex;
    flex-direction: column;
}

.etapa-3-layout .form-container .form-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.etapa-3-layout .form-container .form-actions {
    margin-top: auto;
}

.preview-section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.form-container.etapa-3-expanded .preview-section {
    display: block;
}

.preview-tabs {
    margin-bottom: 15px;
}

.preview-tabs .btn-outline-primary {
    color: #F56B11;
    border-color: #F56B11;
}

.preview-tabs .btn-outline-primary:hover {
    background-color: #F56B11;
    border-color: #F56B11;
    color: white;
}

.preview-tabs .btn-outline-primary:focus {
    background-color: #F56B11;
    border-color: #F56B11;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(245, 107, 17, 0.25);
}

.preview-tabs .btn-outline-primary:not(.active) {
    color: #333;
    border-color: #e9ecef;
}

.preview-tabs .btn-outline-primary:not(.active):hover {
    background-color: #F56B11;
    border-color: #F56B11;
    color: white;
}

.preview-iframe-container {
    background: #f8f9fa;
    overflow: hidden;
    position: relative;
    height: 400px;
    border-radius: 8px;
}

.preview-iframe-container iframe {
    border: none;
    transform: scale(0.4);
    transform-origin: top left;
    width: 250%;
    height: 1000px;
}

.checkout-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #F5140A;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.checkout-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #F56B11;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #F5140A;
    background: #f8f9fa;
}

.payment-method.selected {
    border-color: #F5140A;
    background: rgba(245, 20, 10, 0.1);
}

.payment-method i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #F5140A;
}

.payment-method.selected i {
    color: #F54311;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
}

.form-check-input:checked {
    background-color: #F5140A;
    border-color: #F5140A;
}

.form-check-label {
    margin-bottom: 0;
}

.form-check-label a {
    color: #F5140A;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.terms-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* ========================================
   PÁGINA DE SESSÃO EXPIRADA
   ======================================== */

.expired-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(197, 203, 226) 0%, rgb(218, 207, 230) 100%);
    padding: 20px;
}

.expired-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.expired-icon {
    font-size: 5rem;
    color: #F5140A;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.expired-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.expired-message {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.expired-submessage {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.expired-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.expired-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.expired-btn-primary {
    background: linear-gradient(135deg, #F5140A 0%, #F54311 100%);
    color: white;
    border: none;
}

.expired-btn-primary:hover {
    background: linear-gradient(135deg, #d41209 0%, #e03a0f 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 20, 10, 0.3);
    color: white;
}

.expired-btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
}

.expired-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #F5140A;
    color: #F5140A;
    transform: translateY(-2px);
}

.expired-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.expired-footer-text {
    color: #adb5bd;
    font-size: 0.75rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .form-container {
        margin: 10px;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .form-header {
        padding: 15px;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .form-body {
        padding: 15px;
    }
    
    .etapa-3-layout {
        flex-direction: column;
    }
    
    .etapa-3-layout #previewCard {
        transform: none;
        margin-top: 15px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .expired-content {
        padding: 30px 20px;
    }
    
    .expired-icon {
        font-size: 3.5rem;
    }
    
    .expired-title {
        font-size: 1.5rem;
    }
}

