/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Maiva Gás - Azul e Laranja */
    --primary-color: #1e40af;      /* Azul profissional */
    --primary-light: #3b82f6;      /* Azul claro */
    --primary-dark: #1e3a8a;       /* Azul escuro */
    --secondary-color: #f97316;    /* Laranja (fogo/gás) */
    --secondary-light: #fb923c;    /* Laranja claro */
    --secondary-dark: #ea580c;     /* Laranja escuro */
    --accent-color: #0ea5e9;       /* Azul cyan (destaque) */
    --text-primary: #1f2937;       /* Texto principal */
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    margin-bottom: 30px;
}

/* Form Sections */
.form-section {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--card-shadow-hover);
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.form-section h2 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Product Card */
.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.product-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.product-details {
    flex: 1;
}

.product-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 4px 0 8px 0;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

#productsContainer {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.quantity-selector label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border-radius: 10px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(30, 64, 175, 0.2);
}

.qty-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.qty-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(30, 64, 175, 0.2);
}

.quantity-controls input[type="number"],
#quantity {
    width: 50px;
    height: 32px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: white;
    border-radius: 6px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--card-background);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Radio Options */
.delivery-options,
.payment-options {
    display: grid;
    gap: 15px;
}

.delivery-option,
.payment-option {
    position: relative;
}

.delivery-option input[type="radio"],
.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.radio-label:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow);
}

.radio-label i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 24px;
}

.delivery-option input[type="radio"]:checked + .radio-label,
.payment-option input[type="radio"]:checked + .radio-label {
    background: #eff6ff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.delivery-option .radio-label div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-option .radio-label p {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* Scheduled Fields */
.scheduled-fields {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    transition: var(--transition);
}

/* Total Section */
.total-section {
    background: var(--text-primary);
    color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.total-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.total-row:last-child {
    border-bottom: none;
}

.total-final {
    font-size: 1.3rem !important;
    padding-top: 15px !important;
    border-top: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-bottom: none !important;
    margin-top: 10px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--card-shadow);
}

.submit-btn:hover {
    background: #22c55e;
    box-shadow: var(--card-shadow-hover);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn i {
    font-size: 1.4rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .product-info {
        justify-content: flex-start;
    }
    
    .quantity-selector {
        align-self: center;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .radio-label {
        padding: 14px 16px;
    }
    
    .delivery-option .radio-label {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .form-section {
        padding: 16px;
        margin-bottom: 15px;
    }
    

    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .submit-btn {
        padding: 16px 20px;
        font-size: 1.1rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeInUp 0.6s ease-out;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Steps/Wizard Styles */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.step-item.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.step-item.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    max-width: 80px;
}

.step-item.active ~ .step-line,
.step-item.completed ~ .step-line {
    background: var(--primary-color);
}

.step-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.step-content.active {
    display: block;
}

.step-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: space-between;
}

.btn-next,
.btn-back {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-next {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-next:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-back {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-back:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cart-summary {
    margin-top: 20px;
}

.cart-summary h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

#cartItems {
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.cart-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .steps-indicator {
        padding: 15px 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-line {
        max-width: 40px;
        margin: 0 5px;
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-back {
        width: 100%;
    }
} 