/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #2c3e50;
}

/* Layout */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

.header {
    margin: 30px 0;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Buttons */
.service-button {
    border: 3px solid #000000;
    border-radius: 10px;
    padding: 20px;
    margin: 15px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-button h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.service-button p {
    color: #7f8c8d;
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
}

.modal-content h2 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-content p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #959596;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    background-color: white;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
    padding: 12px;
}

/* Radio and Checkbox groups */
.radio-group,
.checkbox-group {
    margin: 10px 0;
}

.radio-option,
.checkbox-option {
    margin: 12px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option label,
.checkbox-option label {
    cursor: pointer;
    user-select: none;
}

/* About Page */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-link {
    display: inline-block;
    margin-top: 20px;
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.about-text h2 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 2em;
}

.about-text p {
    line-height: 1.6;
    color: #333;
}

.divider {
    width: 80%;
    height: 1px;
    background-color: #eee;
    margin: 30px auto;
}

.legalese {
    color: gray;
    font-size: 10px;
    text-align: center;
    margin: 60px 0 20px;
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-submit {
    background-color: #959596; /* Blue from the Q in the logo */
    color: white;
    border: 1px solid black;
}

.btn-submit:hover {
    background-color: #b9b9b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.btn-cancel {
    background-color: white; /* Orange from the arrow shaft in the logo */
    color: black;
    border: 1px solid black;
}

.btn-cancel:hover {
    background-color: white;
    border: 1px solid black;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-cancel:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.btn-group .btn {
    flex: 1;
    min-width: 120px;
}

/* Character Counter */
.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 4px;
    font-style: italic;
}

.char-count.warning {
    color: #e74c3c;
    font-weight: 500;
}

/* Form validation */
input:required:invalid,
select:required:invalid,
textarea:required:invalid {
    border-left: 3px solid #959596; /* Gold accent from the logo */
    transition: border-color 0.3s ease;
}

input:required:valid,
select:required:valid,
textarea:required:valid {
    border-left: 3px solid #959596; /* Blue from the Q in the logo */
    transition: border-color 0.3s ease;
}

/* Focus state for better UX */
input:focus:required:invalid,
select:focus:required:invalid,
textarea:focus:required:invalid {
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

input:focus:required:valid,
select:focus:required:valid,
textarea:focus:required:valid {
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* LLR Button */
.llr-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    z-index: 100;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 40px;
    height: 40px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.llr-button:hover,
.llr-button.expanded {
    max-width: 450px;
    height: auto;
    border-radius: 5px;
    padding: 15px;
}

.llr-button .llr-text {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
    vertical-align: middle;
    margin-left: 5px;
}

.llr-button:hover .llr-text,
.llr-button.expanded .llr-text {
    opacity: 1;
}

.llr-button .llr-logo {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.llr-button:hover .llr-logo,
.llr-button.expanded .llr-logo {
    transform: scale(1.1);
}

.llr-button a {
    display: flex;
    align-items: center;
    color: #2c3e50;
    text-decoration: none;
}

.llr-button img {
    margin-right: 10px;
    height: 30px;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-button {
        width: 90%;
        margin: 10px 0;
    }
    
    .modal-content {
        padding: 20px 15px;
        width: 95%;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 12px;
    }
    
    .form-input {
        padding: 10px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}
