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

body {
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Ocultar seções inicialmente para evitar flash ao carregar */
.gallery-section,
.highlight-section {
    display: none;
}

/* Classe para mostrar seções após verificar configurações */
.gallery-section.visible,
.highlight-section.visible {
    display: block;
}

.page-header {
    background: #000;
    padding: 40px 20px;
    padding-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header .logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
}

.page-header .subtitle {
    margin: 0;
    max-width: 800px;
}

.page-header .nota-proposta {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #aaa;
}

.page-footer {
    background: #000;
    padding: 30px 20px;
    text-align: center;
}

.page-footer .nota-proposta {
    margin: 0;
    font-size: 14px;
    color: #aaa;
}

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

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.subtitle {
    font-size: 18px;
    color: #f5f5f5;
    font-weight: 400;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.form-section {
    background: #2a2a2a;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    background: #1a1a1a;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #f5f5f5;
}

.form-group select optgroup {
    background: #0a0a0a;
    color: #25d366;
    font-weight: 600;
    padding: 8px 0;
}

.form-group select option {
    background: #1a1a1a;
    color: #f5f5f5;
    padding: 8px 12px;
}

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

.hidden {
    display: none !important;
}

.mensagem-sucesso {
    background: #1e5a1e;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-left: 4px solid #25d366;
    margin: 20px auto;
    max-width: 1200px;
}

.mensagem-sucesso p {
    margin: 0;
}

.btn-primary {
    background-color: #25d366;
    color: #fff;
    padding: 12px 24px;
    border: none;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.btn-primary:hover {
    background-color: #1fb057;
}

.btn-primary:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background-color: #555;
    color: #fff;
    padding: 12px 24px;
    border: none;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #666;
}

.btn-remove {
    background-color: #e74c3c;
    color: #fff;
    padding: 8px 16px;
    border: none;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

.btn-remove:hover {
    background-color: #c0392b;
}

.ambiente-card {
    border: 1px solid #444;
    padding: 20px;
    margin-bottom: 20px;
    background: #222;
}

.ambiente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ambiente-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-section {
    background: #2a2a2a;
    padding: 40px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #4A9EFF;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: #1a1a1a;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(74, 158, 255, 0.3);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-content {
    padding: 20px;
}

.gallery-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #4A9EFF;
}

.gallery-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #f5f5f5;
}

.highlight-section {
    background: #000;
    padding: 40px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.highlight-item {
    text-align: left;
}

.highlight-item h2 {
    color: #25d366;
    font-size: 28px;
    margin-bottom: 25px;
}

.highlight-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #f5f5f5;
    margin-bottom: 20px;
}

.highlight-item p:last-child {
    margin-bottom: 0;
}

.summary-section {
    background: #2a2a2a;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.total-box {
    background: #222;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.total-box h3 {
    font-size: 28px;
    color: #25d366;
    margin-bottom: 10px;
}

.garantia {
    font-size: 16px;
    font-weight: 600;
    color: #25d366;
    margin-top: 5px;
}

.proposta-opcoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.proposta-card {
    border: 2px solid #444;
    padding: 20px;
    background: #222;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.proposta-card input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #25d366;
}

.proposta-card:has(input[type="radio"]:checked) {
    border-color: #25d366;
    background: #1a3a1a;
}

.proposta-label {
    cursor: pointer;
    flex: 1;
}

.proposta-label h4,
.proposta-label p {
    cursor: pointer;
}

.btn-salvar-proposta {
    margin-top: 20px;
    padding: 16px 32px;
    font-size: 18px;
    display: block;
    width: 100%;
}

.btn-imprimir {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-imprimir svg {
    flex-shrink: 0;
}

.nota-cliente {
    text-align: center;
    margin: 25px 0 0 0;
    font-size: 16px;
    color: #f5f5f5;
}

.proposta-valor {
    font-size: 24px;
    font-weight: 700;
    color: #25d366;
    margin: 10px 0;
}

.empresa-info {
    background: #222;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.empresa-logo {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

.empresa-texto {
    flex: 1;
}

.empresa-info p {
    margin-bottom: 8px;
    font-size: 16px;
    color: #f5f5f5;
}

.empresa-info a {
    color: #25d366;
    text-decoration: none;
}

.empresa-info a:hover {
    text-decoration: underline;
}

#resumo-produtos {
    margin-bottom: 20px;
}

.ambiente-resumo {
    margin-bottom: 25px;
    padding: 15px;
    background: #222;
    border-left: 3px solid #25d366;
}

.ambiente-titulo {
    font-size: 18px;
    font-weight: 600;
    color: #25d366;
    margin-bottom: 15px;
}

.produto-linha {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #444;
    font-size: 14px;
}

.produto-nome {
    flex: 1;
    color: #f5f5f5;
}

.produto-qtd {
    width: 80px;
    text-align: center;
    color: #f5f5f5;
}

.produto-valor {
    width: 120px;
    text-align: right;
    font-weight: 500;
    color: #f5f5f5;
}

.subtotal-linha {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    margin-top: 10px;
    border-top: 2px solid #444;
    font-weight: 600;
    font-size: 16px;
}

.subtotal-label {
    color: #fff;
}

.subtotal-valor {
    color: #25d366;
}

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

    .page-header .logo {
        max-width: 200px;
        margin-bottom: 20px;
    }

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    .form-section,
    .summary-section {
        padding: 20px;
    }

    .ambiente-grid {
        grid-template-columns: 1fr;
    }

    .proposta-opcoes {
        grid-template-columns: 1fr;
    }
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
}

.tab-btn {
    background: transparent;
    color: #aaa;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    border-bottom: 3px solid #fff;
}

.tab-content {
    display: none;
}

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

.config-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.config-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.config-section .form-group {
    margin-bottom: 15px;
}

.config-section label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.config-section input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
