﻿/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1d1d1f;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 0px;
}

    .form-group label {
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #555;
    }

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: center; /* Vertically centers items */
    position: relative;
}

    /* Native checkbox styling */
    .checkbox-container input[type="checkbox"] {
        cursor: pointer;
        margin-right: 10px; /* Space between the checkbox and label */
    }

    /* Label styling */
    .checkbox-container label {
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        user-select: none;
        display: flex; /* Ensures the text is centered with the checkbox */
        align-items: center; /* Vertically centers the text */
    }

/* Custom button styles */
.custom-btn {
    font-size: 0.875rem;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    background-color: #e9edf0;
}

    .custom-btn .fa-paperclip {
        margin-right: 0.5rem;
    }

.btn-nobg-gray {
    background-color: transparent;
    color: #5f5f5f;
    border: none;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

    .btn-nobg-gray .fa-copy {
        color: #5f5f5f;
        margin-right: 0.5rem;
    }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea,
.canvas-container {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
    }

/* Signature component */
.signature-component {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

    .signature-component canvas {
        border-radius: 4px;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    button[type="submit"],
    button.btn-secondary {
        width: 100%;
    }
}

.conditional-group {
    background-color: #f1f1f1 !important;
    border-radius: 6px !important;
     padding: 0 15px 15px 15px !important; 
    margin: 10px 0 0 20px !important;
    border: 1px solid #d1d1d1 !important;
}
