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

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

.container {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Type Selector */
.type-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.type-selector label {
    font-weight: bold;
    margin-right: 10px;
}

.type-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Sections */
.form-section, .services-section, .financial-section {
    margin-bottom: 25px;
}

h2 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00D084;
    font-weight: bold;
}

/* Form Styling */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

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

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF9500;
    box-shadow: 0 0 5px rgba(255, 149, 0, 0.2);
}

/* Services Table */
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 2px solid #000;
}

.services-table thead {
    background-color: #fff;
}

.services-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #000;
    color: #000;
    font-size: 0.95rem;
}

.services-table td {
    padding: 12px;
    border: 1px solid #000;
    font-size: 0.95rem;
}

.services-table input {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
}

.services-table input:focus {
    outline: none;
    background: #f9f9f9;
}

/* Financial Section */
.summary-box {
    background: #fff;
    padding: 0;
    border-radius: 0;
    border: 2px solid #000;
    margin-bottom: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #000;
    font-size: 0.95rem;
}

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

.summary-row .label {
    font-weight: bold;
    color: #000;
}

.summary-row .value {
    font-weight: bold;
    color: #000;
    font-size: 1rem;
}

.summary-row.highlight {
    background: #fff;
    padding: 12px 15px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
}

.summary-row.highlight .value {
    color: #000;
    font-size: 1rem;
}

.payment-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.payment-section label {
    font-weight: bold;
    margin-right: 15px;
}

.payment-section select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    min-width: 200px;
}

/* Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Arial, sans-serif;
}

.btn-pdf {
    background-color: #FF9500;
    color: white;
}

.btn-pdf:hover {
    background-color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-reset {
    background-color: #666;
    color: white;
}

.btn-reset:hover {
    background-color: #555;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .action-buttons,
    .type-selector {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
