/* PLC Union Quote Form Styles */
.plc-quote-form * {
    box-sizing: border-box;
}

.plc-quote-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

.plc-quote-form h1 {
    color: #b71c1c;
    border-bottom: 3px solid #b71c1c;
    padding-bottom: 10px;
}

.plc-quote-form h2 {
    color: #333;
    margin-top: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.plc-quote-form h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
}

.plc-quote-form .intro {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #b71c1c;
}

.plc-quote-form .section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.plc-quote-form .form-group {
    margin-bottom: 15px;
}

.plc-quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.plc-quote-form input[type="text"],
.plc-quote-form input[type="email"],
.plc-quote-form input[type="tel"],
.plc-quote-form input[type="url"],
.plc-quote-form textarea,
.plc-quote-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.plc-quote-form textarea {
    height: 100px;
    resize: vertical;
}

.plc-quote-form .required {
    color: #b71c1c;
}

/* Rating Table */
.plc-quote-form .rating-table {
    width: 100%;
    border-collapse: collapse;
}

.plc-quote-form .rating-table th {
    padding: 10px 5px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.plc-quote-form .rating-table th:first-child {
    text-align: left;
    width: 50%;
}

.plc-quote-form .rating-table td {
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
}

.plc-quote-form .rating-table td:first-child {
    text-align: left;
}

.plc-quote-form .rating-table td:not(:first-child) {
    text-align: center;
}

.plc-quote-form .rating-table tr:hover {
    background: #f9f9f9;
}

.plc-quote-form .rating-table input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.plc-quote-form .feature-name {
    font-weight: 500;
}

.plc-quote-form .feature-desc {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

/* Radio Groups */
.plc-quote-form .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.plc-quote-form .radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

/* Checkbox Groups */
.plc-quote-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.plc-quote-form .checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Included Services Box */
.plc-quote-form .included-inline {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 2px solid #4caf50;
}

.plc-quote-form .included-inline::before {
    content: "\2713  Already included:";
    display: block;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 14px;
}

.plc-quote-form .included-inline-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.plc-quote-form .included-inline label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 14px;
    color: #333;
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.plc-quote-form .included-inline input[type="checkbox"] {
    accent-color: #2e7d32;
}

/* Conditional Section */
.plc-quote-form .conditional-section {
    background: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #ffc107;
}

/* Mobile App Section */
.plc-quote-form .mobile-app-section {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.plc-quote-form .mobile-app-section h3 {
    color: #1565c0;
    margin-top: 0;
}

/* Submit Button */
.plc-quote-form .submit-btn {
    background: #b71c1c;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 40px;
}

.plc-quote-form .submit-btn:hover {
    background: #8b0000;
}

.plc-quote-form .submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Field Error Highlighting */
.plc-quote-form .field-error {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

/* Error message near submit button */
.plc-quote-form .submit-error {
    margin-bottom: 15px;
}

/* Messages */
.plc-quote-form .form-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.plc-quote-form .form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
    display: block;
}

.plc-quote-form .form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
    display: block;
}

/* Loading State */
.plc-quote-form.loading .submit-btn {
    position: relative;
    color: transparent;
}

.plc-quote-form.loading .submit-btn::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .plc-quote-form .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .plc-quote-form .rating-table th:not(:first-child),
    .plc-quote-form .rating-table td:not(:first-child) {
        padding: 8px 2px;
    }

    .plc-quote-form .rating-table th small {
        display: none;
    }

    .plc-quote-form .included-inline-items {
        flex-direction: column;
        gap: 8px;
    }
}
