.modal {
    display: none; 
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 30px;
    border: none;
    width: 90%; 
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.modal-intro p {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.service-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.service-item input[type="checkbox"] {
    flex-shrink: 0;
    margin-right: 15px;
    width: 20px;
    height: 20px;
}

.service-item label {
    font-size: 1rem;
    color: #555;
}

#optional-info {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--body-font);
    resize: vertical;
    margin-bottom: 30px;
}

.form-section > label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #555;
    font-weight: 700;
}

.form-section h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #444;
    text-align: center;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--body-font);
    margin-bottom: 15px;
}

.consent-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.consent-section input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
}

.consent-section label {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

#success-message {
    text-align: center;
    padding: 40px;
}

#success-message h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

#success-message p {
    font-size: 1.1rem;
    color: #666;
}
