* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

h2 {
    margin-bottom: 20px;
    color: #3498db;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.highlighted {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
}

.milestone-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
}

.remove-milestone {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.remove-milestone:hover {
    background-color: #c0392b;
}

.btn-add {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-add:hover {
    background-color: #27ae60;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    align-items: center;
}

.json-actions {
    display: flex;
    gap: 10px;
}

.btn-reset {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-reset:hover {
    background-color: #7f8c8d;
}

.btn-view {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-view:hover {
    background-color: #2980b9;
}

/* JSON button styles */
.btn-upload {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-download {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-upload:hover {
    background-color: #8e44ad;
}

.btn-download:hover {
    background-color: #d35400;
}

.btn-upload.drag-over {
    background-color: #8e44ad;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.5);
}

.signature-preview, .logo-preview {
    margin-top: 10px;
    width: 200px;
    height: 50px;
    border: 1px dashed #ccc;
    display: none;
    overflow: hidden;
}

.signature-preview img, .logo-preview img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

/* Proposal styles */
.signature {
    margin-top: 50px;
    text-align: right;
}

.signature-name {
    font-weight: bold;
    margin-top: 10px;
}

.signature-company {
    margin-top: 5px;
}

.signature-image {
    display: block;
    margin-left: auto;
    width: 200px;
    height: 100px;
    margin-bottom: 15px;
}

.signature-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Header logo style */
.header-logo {
    max-width: 200px;
    height: auto;
}

.header-logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* Proposal print styles */
@media print {
    body * {
        visibility: hidden;
    }
    #proposal-print, #proposal-print * {
        visibility: visible;
    }
    #proposal-print {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none;
    }
}