/* Form Container */
.dsf-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

/* Form Grid */
.dsf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.dsf-field {
    display: flex;
    flex-direction: column;
}
.dsf-field label {
    font-weight: bold;
    margin-bottom: 5px;
}
.dsf-field input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Agreement Checkbox */
.dsf-agreement {
    margin: 15px 0;
    text-align: center;
}
.dsf-agreement input {
    margin-right: 5px;
}
.dsf-agreement label {
    font-weight: bold;
}

/* Buttons */
.dsf-button-container {
    text-align: center;
    margin-top: 20px;
}
.dsf-btn {
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}
.dsf-btn-primary {
    background: #007bff;
    color: white;
}
.dsf-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.dsf-btn-secondary {
    background: #6c757d;
    color: white;
}

/* ✅ Fix Background Blur (Now Covers Full Screen Properly) */
.dsf-modal-overlay {
    display: none; /* Ensure it's hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Ensure it spans the full width */
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    max-width: 100vw; /* Ensures it does not shrink unexpectedly */
}

/* ✅ Fix Modal Centering & Size */
.dsf-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    /* padding: 30px; */
    border-radius: 15px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
    width: 650px;
    max-width: 95%;
    z-index: 10000;
    overflow: hidden;
}

/* ✅ Fix Modal Header - More Beautiful */
.dsf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    background: linear-gradient(135deg, #007bff, #003d82);
    color: white;
    font-size: 22px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
	padding-top: 13px;
}

.dsf-modal-header h3{
    line-height: 0.2 !important;
    color: #fff;
}
/* ✅ Close Button (More Stylish) */
.dsf-close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.dsf-close-modal:hover {
    color: #ffdddd;
}

/* ✅ Fix SignaturePad (Now Cursor & Signature Are Aligned) */
.dsf-modal-body {
    padding: 20px;
    text-align: center;
}
.dsf-signature-pad {
    width: 100%;
    height: 350px;
    border: 3px solid #007bff;
    border-radius: 10px;
    background: #a2a4a540;
    touch-action: none; /* Prevent scrolling while signing */
    user-select: none; /* Prevent text selection issues */
}

/* ✅ Prevent Scrolling When Modal is Open */
body.modal-open {
    overflow: hidden;
}

/* ✅ Modal Footer */
.dsf-modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 20px;
}

/* Beautify Buttons */
.dsf-btn {
    padding: 14px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.dsf-btn-primary {
    background: #007bff;
    color: white;
}
.dsf-btn-primary:hover {
    background: #0056b3;
}

.dsf-btn-secondary {
    background: #6c757d;
    color: white;
}
.dsf-btn-secondary:hover {
    background: #545b62;
}

/* ✅ Responsive Fix */
@media (max-width: 768px) {
    .dsf-modal {
        width: 90%;
    }
    .dsf-signature-pad {
        height: 280px;
    }
}

/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
    .dsf-grid {
        grid-template-columns: 1fr;
    }
}

/* ✅ Align Checkbox to Left & Improve Look */
.dsf-agreement {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

/* ✅ Improve Checkbox Styling */
.dsf-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* ✅ Custom Checkbox */
.dsf-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* ✅ Checkbox Checked Style */
.dsf-checkbox:checked {
    background-color: #007bff;
    border: 2px solid #007bff;
    position: relative;
}

/* ✅ Checkmark Icon */
.dsf-checkbox:checked::after {
    content: '✔';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ✅ Terms & Conditions Link */
.dsf-terms-link {
    color: #007bff;
    text-decoration: none;
    margin-left: 5px;
}

.dsf-terms-link:hover {
    text-decoration: underline;
}

/* ✅ Note Below Checkbox */
.dsf-note {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}
.dsf-title{
    line-height: 0.2 !important;
}

/* ✅ Error Messages */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 0px;
	line-height:0px !important;
}

/* ✅ Loader */
.loader {
    display: none;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid white;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ✅ Disable button style */
.dsf-btn:disabled, .dsf-close-modal:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}
