/* =========================================
   GET A QUOTE MODAL 
========================================= */
.quote-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quote-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.quote-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 100%;
    max-width: 600px;
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quote-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.quote-modal-content {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.quote-modal-header {
    background: #279C2F;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.quote-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.quote-modal-close:hover {
    opacity: 1;
}

.quote-modal-body {
    padding: 30px;
}

.quote-modal-desc {
    color: #666666;
    margin-bottom: 25px;
    font-size: 15px;
}

.quote-form-row {
    display: flex;
    gap: 20px;
}

.quote-form-group {
    margin-bottom: 20px;
    flex: 1;
}

.quote-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 700;
    font-size: 14px;
}

.quote-form-group input[type="text"],
.quote-form-group input[type="email"],
.quote-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 15px;
    color: #333;
    transition: all 0.3s;
}

.quote-form-group input:focus,
.quote-form-group textarea:focus {
    border-color: #279C2F;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 156, 47, 0.1);
}

.quote-checkbox-group {
    display: flex;
    gap: 20px;
}

.quote-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.quote-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.quote-checkbox .checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s;
}

.quote-checkbox:hover input ~ .checkmark {
    background-color: #f1f1f1;
}

.quote-checkbox input:checked ~ .checkmark {
    background-color: #279C2F;
    border-color: #279C2F;
}

.quote-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.quote-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.quote-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.quote-submit-btn {
    width: 100%;
    background: #279C2F;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.quote-submit-btn:hover {
    background: #1e7a24;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .quote-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .quote-checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}

.quote-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.quote-modal-content {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.quote-modal-header {
    background: #279C2F;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.quote-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.quote-modal-close:hover {
    opacity: 1;
}

.quote-modal-body {
    padding: 30px;
}

.quote-modal-desc {
    color: #666666;
    margin-bottom: 25px;
    font-size: 15px;
}

.quote-form-row {
    display: flex;
    gap: 20px;
}

.quote-form-group {
    margin-bottom: 20px;
    flex: 1;
}

.quote-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 700;
    font-size: 14px;
}

.quote-form-group input[type="text"],
.quote-form-group input[type="email"],
.quote-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 15px;
    color: #333;
    transition: all 0.3s;
}

.quote-form-group input:focus,
.quote-form-group textarea:focus {
    border-color: #279C2F;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 156, 47, 0.1);
}

.quote-checkbox-group {
    display: flex;
    gap: 20px;
}

.quote-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.quote-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.quote-checkbox .checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s;
}

.quote-checkbox:hover input ~ .checkmark {
    background-color: #f1f1f1;
}

.quote-checkbox input:checked ~ .checkmark {
    background-color: #279C2F;
    border-color: #279C2F;
}

.quote-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.quote-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.quote-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.quote-submit-btn {
    width: 100%;
    background: #279C2F;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.quote-submit-btn:hover {
    background: #1e7a24;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .quote-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .quote-checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}

.form-check-input:checked {
    background-color: #279C2F;
    border-color: #279C2F;
}

.form-check-input:focus {
    border-color: #279C2F;
    box-shadow: 0 0 0 0.25rem rgba(39, 156, 47, 0.25);
}

/* Dark Mode Overrides */
body.site-dark-mode .quote-modal-content {
    background-color: #111111;
    color: #ffffff;
}

body.site-dark-mode .quote-modal-header {
    background-color: #279C2F;
}

body.site-dark-mode .quote-modal-subtitle {
    color: #aaaaaa !important;
}

body.site-dark-mode .quote-modal-label {
    color: #eeeeee;
}

body.site-dark-mode .quote-modal-check-label {
    color: #dddddd;
}

body.site-dark-mode .quote-modal-input,
body.site-dark-mode .form-control.quote-modal-input {
    background-color: #222222;
    border-color: #333333;
    color: #ffffff;
}

body.site-dark-mode .quote-modal-input:focus,
body.site-dark-mode .form-control.quote-modal-input:focus {
    background-color: #2a2a2a;
    border-color: #279C2F;
    color: #ffffff;
}

body.site-dark-mode .quote-modal-close {
    color: #ffffff;
}

body.site-dark-mode .form-check-input {
    background-color: #222222;
    border-color: #444444;
}

body.site-dark-mode .form-check-input:checked {
    background-color: #279C2F;
    border-color: #279C2F;
}
