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

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.contract {
    background-color: #ffffff;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    max-width: 120px;
    height: auto;
}

/* Title */
.title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* Intro */
.intro {
    margin-bottom: 20px;
    font-size: 14px;
}

/* Sections */
.section {
    margin-bottom: 8px;
}

.section p {
    font-size: 11px;
    margin-bottom: 2px;
}

.section-title {
    font-weight: bold;
    margin-bottom: 5px !important;
}

.section-title-bold {
    font-weight: bold;
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

.paragraph-title {
    font-weight: bold;
    font-size: 12px !important;
    margin-bottom: 5px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Item description */
.item-description {
    font-size: 14px;
    margin-bottom: 10px !important;
}

.disclaimer {
    font-size: 9px;
    color: #333;
    text-align: justify;
    margin-top: 5px;
    line-height: 1.2;
}

/* Points */
.point {
    margin-bottom: 10px !important;
}

/* Payment options */
.payment-options {
    margin: 10px 0;
    margin-left: 0;
}

.checkbox-label {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

/* Final provisions */
.final-title {
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    margin: 10px 0 5px 0 !important;
}

.final-point {
    margin-bottom: 5px !important;
    padding-left: 15px;
    text-indent: -15px;
}

/* Signatures */
.signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
}

.signature-block {
    text-align: center;
    width: 45%;
}

.signature-line {
    font-size: 14px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.signature-input {
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    padding: 5px;
    width: 100%;
    text-align: center;
    outline: none;
}

.signature-input:focus {
    background-color: #fffee0;
}

.signature-input::placeholder {
    color: #999;
    letter-spacing: 2px;
}

.signature-label {
    font-size: 13px;
}

/* Inline inputs */
.inline-input {
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    padding: 2px 5px;
    min-width: 120px;
    outline: none;
}

.inline-input:focus {
    background-color: #fffee0;
}

.inline-input::placeholder {
    color: #666;
    font-style: italic;
}

.inline-input.small {
    min-width: 60px;
    width: 80px;
}

.inline-input.wide {
    min-width: 200px;
}

.inline-input.date-input {
    width: 100px;
}

/* Filled values (for PDF) */
.filled-value {
    border-bottom: 1px solid #000;
    padding: 2px 5px;
    font-weight: 500;
}

.checkbox-display {
    font-family: monospace;
    font-weight: bold;
}

/* Readonly inputs */
.readonly-input {
    background-color: #f0f0f0;
    cursor: not-allowed;
    color: #333;
}

.readonly-input:focus {
    background-color: #f0f0f0;
}

/* Signature canvas */
.signature-pad-container {
    position: relative;
    width: 100%;
}

.signature-canvas {
    width: 100%;
    height: 80px;
    border: 1px solid #000;
    background-color: #fff;
    cursor: crosshair;
    touch-action: none;
}

.clear-signature-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 3px 8px;
    font-size: 10px;
    background-color: #666;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.clear-signature-btn:hover {
    background-color: #333;
}

/* Button */
.button-container {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Print / PDF styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        max-width: 100%;
    }

    .contract {
        box-shadow: none;
        padding: 20px;
    }

    .button-container {
        display: none;
    }

    .inline-input {
        border: none;
        border-bottom: 1px solid #000;
    }
}