/* Archimedes Quotes - Frontend Styles */

.aq-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.aq-form-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.aq-form-description {
    margin-bottom: 30px;
    color: #666;
}

/* Form Fields */
.aq-form-fields {
    margin-bottom: 30px;
}

.aq-field-group {
    margin-bottom: 20px;
}

.aq-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.aq-required {
    color: #d00;
}

.aq-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.aq-field:focus {
    outline: none;
    border-color: #0073aa;
}

textarea.aq-field {
    min-height: 100px;
    resize: vertical;
}

/* Services Section */
.aq-services-section {
    margin-bottom: 30px;
}

.aq-services-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.aq-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.aq-service-card {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.aq-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.aq-service-label {
    display: block;
    padding: 20px;
    cursor: pointer;
    margin: 0;
}

.aq-service-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.aq-service-checkbox:checked + .aq-service-content {
    color: #fff;
}

.aq-service-checkbox:checked ~ .aq-service-label,
.aq-service-card:has(.aq-service-checkbox:checked) {
    background: #28a745;
    border-color: #28a745;
}

.aq-service-card:has(.aq-service-checkbox:checked) .aq-service-content {
    color: #fff;
}

.aq-service-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aq-service-name {
    font-size: 18px;
    font-weight: 600;
}

.aq-service-price {
    font-size: 16px;
    font-weight: 500;
}

.aq-pricing-type {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

/* Quantity Selector */
.aq-quantity-selector {
    padding: 10px 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.05);
}

.aq-service-card:has(.aq-service-checkbox:checked) .aq-quantity-selector {
    background: rgba(0,0,0,0.1);
}

.aq-quantity-selector label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 500;
}

.aq-quantity-input {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.aq-service-card:has(.aq-service-checkbox:checked) .aq-quantity-input {
    background: #fff;
    border-color: #fff;
}

/* Child Services (hidden by default) */
.aq-child-service {
    display: none;
}

.aq-child-service.aq-visible {
    display: block;
}

/* Budget Slider */
.aq-budget-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.aq-budget-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.aq-budget-value-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.aq-budget-value {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    cursor: default;
}

.aq-budget-value[data-allow-custom="1"] {
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.aq-budget-value[data-allow-custom="1"]:hover {
    background: #e6e6e6;
}

.aq-budget-amount {
}

.aq-budget-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.aq-budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
}

.aq-budget-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: none;
}

/* Quote Calculator */
.aq-quote-calculator {
    margin-bottom: 30px;
    padding: 25px;
    background: #f0f8ff;
    border: 2px solid #0073aa;
    border-radius: 8px;
}

.aq-quote-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0073aa;
}

.aq-quote-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aq-quote-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 5px;
    font-size: 18px;
}

.aq-quote-label {
    font-weight: 600;
}

.aq-quote-amount {
    font-weight: 700;
    color: #0073aa;
    font-size: 20px;
}

/* reCAPTCHA */
.aq-recaptcha-wrapper {
    margin-bottom: 20px;
}

/* Messages */
.aq-form-messages {
    margin-bottom: 20px;
}

.aq-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.aq-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.aq-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit Button */
.aq-submit-button {
    display: inline-block;
    padding: 15px 40px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.aq-submit-button:hover {
    background: #005a87;
}

.aq-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Wrapper */
.aq-success-wrapper {
    text-align: center;
}

.aq-success-message {
    margin-bottom: 20px;
    font-size: 18px;
}

.aq-quote-display {
    margin-bottom: 30px;
    padding: 25px;
    background: #f0f8ff;
    border: 2px solid #0073aa;
    border-radius: 8px;
}

.aq-quote-display h3 {
    color: #0073aa;
    margin-bottom: 15px;
}

.aq-quote-display .aq-quote-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 5px;
    font-size: 18px;
    margin-bottom: 10px;
}

.aq-submit-another {
    display: inline-block;
    padding: 12px 30px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.aq-submit-another:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 768px) {
    .aq-services-grid {
        grid-template-columns: 1fr;
    }
    
    .aq-quote-line {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Loading State */
.aq-quote-form.loading {
    opacity: 0.6;
    pointer-events: none;
}
