/* CCS FAB Core — Quote form (from Code Snippet #26). Colours come from :root vars printed by the module. */

.pms-quote-form-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px !important;
    background: var(--pmsq-bg) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    box-sizing: border-box !important;
}

.pms-quote-form-wrapper * {
    box-sizing: border-box !important;
}

.pms-quote-form-wrapper h2 {
    margin: 0 0 10px 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.pms-quote-form-wrapper .form-subtitle {
    color: #6b7280 !important;
    margin-bottom: 30px !important;
    font-size: 16px !important;
}

.pms-quote-form-wrapper .form-row {
    margin-bottom: 24px !important;
}

.pms-quote-form-wrapper .form-row-half {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

@media (max-width: 768px) {
    .pms-quote-form-wrapper {
        padding: 20px !important;
        margin: 10px !important;
    }
    .pms-quote-form-wrapper .form-row-half {
        grid-template-columns: 1fr !important;
    }
}

.pms-quote-form-wrapper label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 14px !important;
}

.pms-quote-form-wrapper label .required {
    color: #dc2626 !important;
}

.pms-quote-form-wrapper input[type="text"],
.pms-quote-form-wrapper input[type="email"],
.pms-quote-form-wrapper input[type="tel"],
.pms-quote-form-wrapper input[type="number"],
.pms-quote-form-wrapper input[type="date"],
.pms-quote-form-wrapper select,
.pms-quote-form-wrapper textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--pmsq-border) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #fff !important;
    color: #1f2937 !important;
}

.pms-quote-form-wrapper input:focus,
.pms-quote-form-wrapper select:focus,
.pms-quote-form-wrapper textarea:focus {
    outline: none !important;
    border-color: var(--pmsq-primary) !important;
    box-shadow: 0 0 0 3px var(--pmsq-primary-20) !important;
}

.pms-quote-form-wrapper textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.pms-quote-form-wrapper .service-selector {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}

@media (max-width: 768px) {
    .pms-quote-form-wrapper .service-selector {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.pms-quote-form-wrapper .service-option {
    position: relative !important;
}

.pms-quote-form-wrapper .service-option input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.pms-quote-form-wrapper .service-option label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 24px !important;
    border: 2px solid var(--pmsq-border) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-align: center !important;
    background: #fff !important;
}

.pms-quote-form-wrapper .service-option label:hover {
    border-color: var(--pmsq-primary) !important;
    background: var(--pmsq-primary-08) !important;
}

.pms-quote-form-wrapper .service-option input:checked + label {
    border-color: var(--pmsq-primary) !important;
    background: var(--pmsq-primary-10) !important;
    box-shadow: 0 0 0 3px var(--pmsq-primary-20) !important;
}

.pms-quote-form-wrapper .service-option .service-icon {
    font-size: 36px !important;
    margin-bottom: 12px !important;
}

.pms-quote-form-wrapper .service-option .service-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.pms-quote-form-wrapper .service-fields {
    display: none !important;
    animation: fadeIn 0.3s ease !important;
}

.pms-quote-form-wrapper .service-fields.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pms-quote-form-wrapper .section-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 30px 0 20px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--pmsq-border) !important;
}

.pms-quote-form-wrapper .checkbox-group,
.pms-quote-form-wrapper .radio-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.pms-quote-form-wrapper .checkbox-group label,
.pms-quote-form-wrapper .radio-group label {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    border: 2px solid var(--pmsq-border) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-weight: 500 !important;
    background: #fff !important;
}

.pms-quote-form-wrapper .checkbox-group label:hover,
.pms-quote-form-wrapper .radio-group label:hover {
    border-color: var(--pmsq-primary) !important;
}

.pms-quote-form-wrapper .checkbox-group input,
.pms-quote-form-wrapper .radio-group input {
    margin-right: 8px !important;
    width: auto !important;
}

.pms-quote-form-wrapper .checkbox-group input:checked + span,
.pms-quote-form-wrapper .radio-group input:checked + span {
    color: var(--pmsq-primary) !important;
}

.pms-quote-form-wrapper .file-upload-area {
    border: 2px dashed var(--pmsq-border) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background: #fafafa !important;
}

.pms-quote-form-wrapper .file-upload-area:hover,
.pms-quote-form-wrapper .file-upload-area.dragover {
    border-color: var(--pmsq-primary) !important;
    background: var(--pmsq-primary-08) !important;
}

.pms-quote-form-wrapper .file-upload-area input[type="file"] {
    display: none !important;
}

.pms-quote-form-wrapper .file-upload-icon {
    font-size: 48px !important;
    color: #9ca3af !important;
    margin-bottom: 16px !important;
}

.pms-quote-form-wrapper .file-upload-text {
    color: #6b7280 !important;
    margin-bottom: 8px !important;
}

.pms-quote-form-wrapper .file-upload-hint {
    font-size: 13px !important;
    color: #9ca3af !important;
}

.pms-quote-form-wrapper .file-list {
    margin-top: 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.pms-quote-form-wrapper .file-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    background: #f9fafb !important;
    border: 1px solid var(--pmsq-border) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    gap: 12px !important;
    min-width: 200px !important;
    max-width: 100% !important;
}

.pms-quote-form-wrapper .file-item .file-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #e5e7eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pms-quote-form-wrapper .file-item .file-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.pms-quote-form-wrapper .file-item .file-thumb.file-icon {
    font-size: 24px !important;
    background: var(--pmsq-primary-15) !important;
}

.pms-quote-form-wrapper .file-item .file-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.pms-quote-form-wrapper .file-item .file-name {
    font-weight: 500 !important;
    color: #1f2937 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.pms-quote-form-wrapper .file-item .file-size {
    font-size: 12px !important;
    color: #6b7280 !important;
}

.pms-quote-form-wrapper .file-item .remove-file {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s !important;
}

.pms-quote-form-wrapper .file-item .remove-file:hover {
    background: #dc2626 !important;
    color: #fff !important;
}

.pms-quote-form-wrapper .file-error {
    color: #dc2626 !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

.pms-quote-form-wrapper .submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 16px 32px !important;
    background: var(--pmsq-button) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-top: 20px !important;
}

.pms-quote-form-wrapper .submit-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

.pms-quote-form-wrapper .submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.pms-quote-form-wrapper .submit-btn .spinner {
    display: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #fff !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
    margin-right: 10px !important;
}

.pms-quote-form-wrapper .submit-btn.loading .spinner {
    display: inline-block !important;
}

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

.pms-quote-form-wrapper .form-message {
    padding: 16px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 15px !important;
}

.pms-quote-form-wrapper .form-message.success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #6ee7b7 !important;
}

.pms-quote-form-wrapper .form-message.error {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}

.pms-quote-form-wrapper .honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Success popup */
.pms-success-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 20px !important;
}

.pms-success-popup-content {
    background: #fff !important;
    padding: 40px !important;
    border-radius: 16px !important;
    text-align: center !important;
    max-width: 500px !important;
    width: 100% !important;
    animation: popupIn 0.3s ease !important;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.pms-success-popup .success-icon {
    width: 80px !important;
    height: 80px !important;
    background: #d1fae5 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px !important;
    font-size: 40px !important;
}

.pms-success-popup h3 {
    font-size: 24px !important;
    margin-bottom: 10px !important;
    color: #1f2937 !important;
}

.pms-success-popup p {
    color: #6b7280 !important;
    margin-bottom: 20px !important;
}

.pms-success-popup .close-popup {
    padding: 12px 32px !important;
    background: var(--pmsq-button) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Validation error styles */
.pms-quote-form-wrapper .field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}
.pms-quote-form-wrapper .error-message {
    color: #dc2626 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    display: block !important;
}
.pms-quote-form-wrapper .service-option.field-error label {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}
.pms-quote-form-wrapper .checkbox-group.field-error,
.pms-quote-form-wrapper .radio-group.field-error {
    padding: 10px !important;
    border: 2px solid #dc2626 !important;
    border-radius: 8px !important;
    background: rgba(220, 38, 38, 0.05) !important;

